Special Variables:
app
helper
Specifying console environment (defaults to development):
$ script/console production
$ script/console test
$ script/console development
Loading a session for debugging:
>> session =
Marshal.load(File.open(’tmp/sessions/ruby_sess.8eb9614a7e4e1e3b’))
=> {”hash”=>{:cart=…
>> cart = session[”hash”][:cart]
Reloading the console:
>> reload!
Rollback all database changes on exit:
$ script/console --sandbox
Loading development environment in sandbox.
Any modifications you make will be rolled back on exit.
>>
See also:
$ cheat rails_consolecheat sheets.
$ cheat console( add new | see all )
- updated sheets

- mysql_select
- cheat
- cryptsetup
- burm
- perl
- port
- yuilang
- queriac
- mechanize
- sness
- nonsense
- haml
- git
- assert_valid
- marsmission
Advertisement