rails generate basics
create controller with help and home routes [sourcecode language="bash"] $ rails generate controller StaticPages home help --no-test-framework [/sourcecode] ...
create controller with help and home routes [sourcecode language="bash"] $ rails generate controller StaticPages home help --no-test-framework [/sourcecode] ...
When you create a new site, skip generating unit test, as you want to use rspec instead. [sourcecode language="bash"] $ rails new sample_app --skip-test-unit...
Delete a directory recursively and forcefully. You have files in there, but you want to delete the directory [sourcecode language="bash"] rm -rf first_app/ [...
Create an application on heroku [sourcecode language="bash"] $ heroku create --stack cedar $ git push heroku master [/sourcecode] This will create an auto-ge...
Probably the easiest one, :length. You can give :maximum length. [sourcecode language="rails"] class Micropost < ActiveRecord::Base attr_accessible :con...