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
=> [#
>> u = users[0]
=> #
>> 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 ↓
Thanks Damon, I’ll include your example.
Leave a Comment