will willis
2006-Jun-15 01:59 UTC
[Rails] script/generate works fine as root, but not as -me-
$ script/generate Scaffold Product Admin Cannot find gem for Rails =1.1.2: Install the missing gem with ''gem install -v=1.1.2 rails'', or change environment.rb to define RAILS_GEM_VERSION with your desired version. $ rails -v Rails 1.1.2 $ echo ''wtf?'' wtf? ------- The above is what I get when I run script/generate as me, my normal user (MacOS X). When I su - and run script/generate everything works fine. Any ideas why this is happening? Should I bother with fixing this and just continue developing as root? I plan on deploying to a shared hosting environment eventually... TIA -WillWillis -- Posted via http://www.ruby-forum.com/.
Jon Gretar Borgthorsson
2006-Jun-15 03:19 UTC
[Rails] script/generate works fine as root, but not as -me-
Try inside your app: sudo chown -R YourUserLogin * Do you have vendor/rails in your app? On 6/15/06, will willis <silent11@gmail.com> wrote:> $ script/generate Scaffold Product Admin > Cannot find gem for Rails =1.1.2: > Install the missing gem with ''gem install -v=1.1.2 rails'', or > change environment.rb to define RAILS_GEM_VERSION with your desired > version. > > $ rails -v > Rails 1.1.2 > > $ echo ''wtf?'' > wtf? > > > ------- > > The above is what I get when I run script/generate as me, my normal user > (MacOS X). When I su - and run script/generate everything works fine. > > Any ideas why this is happening? Should I bother with fixing this and > just continue developing as root? I plan on deploying to a shared > hosting environment eventually... > > TIA > > -WillWillis > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/