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)
You are not logged in. Please login or register.
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)
Check out Ryan Bates Railscasts http://railscasts.com/episodes/48-console-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 = Project.new
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
.irbrc
if there anymore resources please let me know
thanks jmesserer for the link. this is very helpful.
________________
Blendtec Blenders
Last edited by ambermorgan (2010-12-13 05:42:09)
Hosting provided by aTech Media