Rails Project only with root rights

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:

[email protected]:~/data> rails test

I get following output:

const_missing': undefined methoddemodulize’ for
“ActiveRecordError”:String (NoMethodError)
require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:inrequire’
require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:182:inactivate’
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:inactivate’
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:inrequire_gem_with_options’
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
from /usr/local/bin/rails:17


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

Sorry Im not much help, I just thought i’d share my experience,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs