cheat sheets.

$ cheat rails_console
Reloading the Console Environment:
>> reload!
(outdated)
>> Dispatcher.reset_application!

Load and execute a Ruby script:
>> load "the_file_name.rb"

Using app object:
>> app.get '/stories/10002'
=> 200
>> app.assigns(:story)
=> #<Story:0x24aad0c ... >
>> app.path
=> "/stories/10002" 
>> app.reset!
=> nil

Using helpers methods:
>> helper.pluralize 2, "story" 
=> "2 stories"
Version 3, updated 762 days ago.
. o 0 ( | previous | history | revert to | current | diff )
( add new | see all )