Do you have more than one gems directory.
I had a similar problem and solved it via setting the GEN_HOME variable
to the personal gems install directory.
The problem..
[~/rails/helloblog]# ./script/generate
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in
`establish_connection': Please install the postgresql adapter: `gem
install activerecord-postgresql-.......
The solution i found on net
[~/rails/helloblog]# export GEM_HOME=/home/phoad/ruby/gems
[~/rails/helloblog]# export PATH=/home/phoad/ruby/bin:$PATH
Viola..
[~/rails/helloblog]# ./script/generate scaffold Blog id:int title:string
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/blogs
exists app/views/layouts/
exists test/functional/
Good luck..
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---