Register • FAQ • Memberlist • Usergroups • Tutorials Point • Log in

| Page 1 of 1

RAILS_ROOT question
Author | Message
--- | ---
jlillywh Joined: 10 Jul 2008 Posts: 1 | RAILS_ROOT question I'm running an activerecord script that has this command in it: CSV.open("#{RAILS_ROOT}/doc/RiverFlow2.csv", 'r') do |row| etc... Problem is, I get the following error when I run it:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278:in `load_missing_constant': uninitialized constant RAILS_ROOT (NameError)
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:467:in `const_missing'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:479:in `const_missing'
I would really appreciate any ideas you might have.
Jason
Thu Jul 10, 2008 8:13 pm |

Display posts from previous: |

| Page 1 of 1

You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum

Powered by phpBB © phpBB Group Design by Vjacheslav Trushkin for phpBBStyles.com