./script/generate model mymodelname
./script/generate scaffold scaffoldname</pre...
Rails starts its web server on port 3000 by default. If you want to use a different port, such as 8888, run the command below.
ruby script/server -p 8888
rails demo_apps
In this case, it will create a Rails application "apps" with the latest version installed on our machine.
If y...
<% .... %> is Scriptlet
and
<%= ... %> is Expression
To rollback your most recent migration, execute the command below
rake db:migrate:rollback
If you want to rollback a specific migration, you need to execute the command below
rake db:migrate VERSION=