Join Newsletter


Share with:

Recent Posts

June 2009

symbolwhat it does +concatenate "a" "b" => -1 >> "a" "a" => 0 >> "b" "a" => 1 Some more string methods, using examples: >> s = "hello" => "hello" >> s.concat(" world") => "hello world" # .concat is same as + >> s.insert(5, " there") => "hello there world" # inserts substring into part of the...

Read More

Some great shortcuts for script generation. I always try to start by building scaffold for any new entity, then remove the scaffold as needed, leaving only the pieces of the scaffold which I need. to generate a new model: script/generate scaffold Person age:integer first:string last:string some_list_id:integer * This...

Read More

How can I search for available rake tasks? rake -T | grep gem (where "gem" is the thing you are searching for) The above example will return all of the rake tasks relating to gems: rake gems ...

Read More

Gems are installed by sources, or a repository which holds several gems. Generally all the gems you will need are either in or, so once you setup these two sources you don't need to setup more sources until you need a gem from...

Read More