Sunday, July 25, 2010

[Rails] How can I force require a file in the console?

I use rails-3.0.0.beta3 and ruby-1.9.2-preview3.

I have defined some new methods in the application_controller.rb, and
need to test them in the consle.

If I changed some codes in the application_controller.rb.
I should always restart the console.

I have tried to use 'reload!' command, just dosen't work.

And then I use "require 'applicatioin.rb'",
still dosen't work.

Help! :(

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate