rspec basics
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...
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...
Rake is ruby make, a make-like language in ruby. make has been used to build code in linux & unit environment. [sourcecode language="bash"] $ bundle exec...