cheat sheets.

$ cheat rails_console
--- rails_console version 1	Mon Sep 04 02:37:42 +0000 2006
+++ rails_console version 9	Wed Mar 19 19:29:29 +0000 2008
@@ -1,5 +1,37 @@
 Reloading the Console Environment:
 >> reload!
-(outdated)
->> Dispatcher.reset_application!
+>> Dispatcher.reset_application!   # (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"
+
+Clear the console:
+ctrl + l or Command + k (Mac)
+
+How-to Examine Routes:
+rs = ActionController::Routing::Routes
+puts rs.routes
+rs.recognize_path "/session"
+rs.generate :controller => "users", :action => "edit", :id => "4"
+
+Print as YAML
+>> y @something
+
+Start in a sandbox (any modifications you make to the database will be rolled
+back on exit)
+$ ./script/console -s
. o 0 (history | current )
( add new | see all )