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
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
Try this instead:
Rails.root
add to_s
if you need it as a string!
RAILS_ROOT
no longer exists. Use Rails.root
instead.