9

After updating from 3.0.1 to 3.1.1 my application according the relevant railscast i seem to get this:

uninitialized constant Product::RAILS_ROOT

Product is my main object

2 Answers 2

22

Try this instead:

Rails.root

add to_s if you need it as a string!

6

RAILS_ROOTno longer exists. Use Rails.root instead.

1
  • Is this supposed to be in enviroment.rb or what?
    – elkalto23
    Commented Nov 19, 2011 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.