am trying to load a file where i have all my setting into rails console. i want to do it because when i use the console there is too much repetition . thank you
A:
From within Rails console or IRB you can load a file with the require method. For example require foo.rb
will execute all the statements in foo.rb
. You can use relative or absolute paths.
Gordon Wilson
2010-04-05 06:24:27
A:
As stated before you can use .irbrc file, take a look here http://github.com/ryanb/dotfiles to see how to separate your rails specific code into a railsrc file.
Francisco
2010-04-05 09:42:36