Recent Posts

rails generate basics

less than 1 minute read

create controller with help and home routes [sourcecode language="bash"] $ rails generate controller StaticPages home help --no-test-framework [/sourcecode] ...

rspec basics

less than 1 minute read

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...

OS X Terminal Basics

less than 1 minute read

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/ [...

heroku basics

less than 1 minute read

Create an application on heroku [sourcecode language="bash"] $ heroku create --stack cedar $ git push heroku master [/sourcecode] This will create an auto-ge...

rails validation basics

less than 1 minute read

Probably the easiest one, :length. You can give :maximum length. [sourcecode language="rails"] class Micropost < ActiveRecord::Base attr_accessible :con...