Topic: console tips and tricks

anyone have any rails console tips and tricks.

ie clear console, show all variables, clear all variables, change environment, show environment?

Last edited by alexk82 (2010-09-02 12:27:55)

Re: console tips and tricks

Check out Ryan Bates Railscasts

Re: console tips and tricks

Thanks jmesserer

some tips/tricks from the rails cast

# set which env you want to use for your console
script/console production

# prod db but changes are rolled back on exit
script/console production --sandbox

# command y will load to yaml
p =
y p

# underscore contains output of last command

# create a file called.. which loads before irb is started so you can add any ruby commands

if there anymore resources please let me know

Re: console tips and tricks

thanks jmesserer for the link. this is very helpful.

Blendtec Blenders

Last edited by ambermorgan (2010-12-13 05:42:09)