Reloading the Console Environment: >> reload! (outdated) >> Dispatcher.reset_application! [Huh? Which is outdated? Does "(outdated)" mean "you can use that but it's outdated", or "here's another way but it's outdated"?] 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"
cheat sheets.
$ cheat rails_console( add new | see all )
- updated sheets

- cheat
- shoulda
- capistrano
- rpm
- string
- sqld4r
- cheat_el
- magit
- to_i
- bm
- rails_date_formats
- sequel
- dexagogo_form_validation
- git
- git_remote_branch
Advertisement