$ command line ruby cheat sheets
Cheat Sheet Title: [ no_spaces_alphanumeric_only ]
Cheat Sheet:Reloading the Console Environment: >> reload! >> 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)
Your cheat sheet will be editable (fixable) by anyone. Each cheat sheet is essentially a wiki page. It may also be used by millions of people for reference purposes from the comfort of their command line. If this is okay with you, please save.
Advertisement