![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
ruby script/generate cs_active_scaffold |
#2
| |||
| |||
|
|
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_a dapters/abstract/connection_specification.rb:76:in `establish_connection': Pleas e install the postgres adapter: `gem install activerecord-postgres-adapter` (no such file to load -- active_record/connection_adapters/postgres_adapter) (Runtim eError) * * * *from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record /connection_adapters/abstract/connection_specification.rb:60:in `establish_conne ction' I am Getting the above error while executing the below command. ruby script/generate cs_active_scaffold Plzz Help he soon .... |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Leonardo Mateo wrote: But Leonardo there is no Gem a Postgre Adapter .... I checked that already ...... Kindly help me ... also in database.yml file I change the the adapter name from postgresql to postgre.... This was suggested in a web page ..... OK, it's been a few months since I left my postgres project, so it |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Leonardo Mateo wrote: Ok Leanardo i will try this and get back to you ..... -- Posted viahttp://www.ruby-forum.com/. |
#7
| |||
| |||
|
|
I usually use ruby-pq to connect to Postgres so in case 'postgres' doesn't work you might try gem install ruby-pq On Nov 7, 5:24*pm, Antony Nambikkai <rails-mailing-l... (AT) andreas-s (DOT) net wrote: Leonardo Mateo wrote: Ok Leanardo i will try this and get back to you ..... -- Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ |
#8
| |||
| |||
|
|
actually what you want is "pg" gem list pg => pg (0.8.0) |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Thanks for you all..... The Issue solved by Installing the gem gem install postgres -pr also if you are using rails version > 2.0 you need to add the following method in rails application goto \config\initializers in new_rails_defaults.rb add the method def PGconn.quote_ident(name) %("#{name}") end |
|
Now the Active Scaffold works fine ...... Thanks friends....... Actually I am trying to remove the database Connection and Read the data from the file and write a data to the same file thro active scaffold .... |
|
Kindly provide you valuable Ideas..... - Antony Nambikkai |
![]() |
| Thread Tools | |
| Display Modes | |
| |