Ruby on Rails cheat sheets

There’s a very nice Ruby on Rails cheat sheet over at resistance to persistence.

If I were him, I would add a section on script/console, as it is one of the most vital tools in the belt for beginning and advanced Rails developers alike.

For example:

>> users = User.find_all
=> [#“0″, “name”=>”Damon”, “id”=>”1″}>]
>> u = users[0]
=> #
“0″, “name”=>”Damon”, “id”=>”1″}>
>> puts u.name + ” is nice.”
Damon is nice.

Could a Rails tool be more friendly?

Also, as a reminder, Amy Hoy has these long standing cheat sheets: Ajax, ActiveRecord, Rails File Locations, and Form Helpers.

1 comment so far ↓

#1 Blaine on 01.10.06 at 6:51 am

Thanks Damon, I’ll include your example.

Leave a Comment