Recent Posts

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

rake basics

less than 1 minute read

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