CmdID

CmdID / Commands

rails

A server-side MVC framework written in Ruby. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

A server-side MVC framework written in Ruby. Some subcommands such as generate have their own usage documentation.

Create a new rails project

rails new "project_name"Identify

Generate a scaffold for a model named Post, predefining the attributes title and body

rails generate scaffold Post title:string body:textIdentify

Run migrations

rails db:migrateIdentify

List all routes

rails routesIdentify

Start local server for current project on port 3000

rails serverIdentify

Start local server for current project on a specified port

rails server --port "port"Identify

Open console to interact with application from command-line

rails consoleIdentify

Display version

rails --versionIdentify