I try to create a rails project as usual user. It does not work.
If I do that as root it works fine.
Also commands rails -v and gem -v does work only with root rights.
On the command:
developer@linux:~/data> rails test
I get following output:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:95:in
`const_missing'': undefined method `demodulize'' for
"ActiveRecordError":String (NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/validations.rb:9
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require''
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record.rb:39
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:182:in
`activate''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:181:in
`activate''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:167:in
`activate''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:166:in
`activate''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
`require_gem_with_options''
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
`require_gem''
from /usr/local/bin/rails:17
Thanks
Jan
--
Posted via http://www.ruby-forum.com/.
Almost the exact thing happened to me. I can''t really give any useful advice other than saying that I got it to work again by re-installing rails. Only thing is that now, lighttpd and the ruby console don''t work for me anymore. In hindsight, I think my installation was all fine until I tried to use Locomotive to run apps, so I''m going to blame that for my broken install. Sorry Im not much help, I just thought i''d share my experience, Damien -- Posted via http://www.ruby-forum.com/.