HighDots Forums  

Active Scaffold --- Help Urgent

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss Active Scaffold --- Help Urgent in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Antony Nambikkai
 
Posts: n/a

Default Active Scaffold --- Help Urgent - 11-07-2009 , 04:45 AM






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.

Quote:
ruby script/generate cs_active_scaffold
Plzz Help he soon ....

Bz this is my first task in this project...

Thanks in advance,
Antony Prabhu
--
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #2  
Old   
Leonardo Mateo
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-07-2009 , 04:53 AM






On Sat, Nov 7, 2009 at 6:45 AM, Antony Nambikkai
<rails-mailing-list (AT) andreas-s (DOT) net> wrote:
Quote:
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 ....
Have you read the error? The error itself is telling you what's wrong
and how to fix it.
Install the Postgres adapter.


--
Leonardo Mateo.
There's no place like ~

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #3  
Old   
Antony Nambikkai
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-07-2009 , 04:57 AM



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 .....

Thanks in advance,
Antony Prabhu N

--
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #4  
Old   
Leonardo Mateo
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-07-2009 , 05:07 AM



On Sat, Nov 7, 2009 at 6:57 AM, Antony Nambikkai
<rails-mailing-list (AT) andreas-s (DOT) net> wrote:
Quote:
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
might have change now since the recently wave of moving to gemcutter
hosted gems, but you should search for your postgres adapter, the one
I was using was called just 'postgres'.
So you should install:
gem install postgres
And your config/database.yml should say:
adapter: postgresql

That's the way it was working for me and I think it should still work.

--
Leonardo Mateo.
There's no place like ~

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #5  
Old   
Antony Nambikkai
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-07-2009 , 05:24 AM



Leonardo Mateo wrote:
Ok Leanardo i will try this and get back to you .....
--
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #6  
Old   
Sunny
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-08-2009 , 07:38 AM



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:
Quote:
Leonardo Mateo wrote:

Ok Leanardo i will try this and get back to you .....
--
Posted viahttp://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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #7  
Old   
Rick
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-08-2009 , 11:03 AM



actually what you want is "pg"

gem list pg => pg (0.8.0)

On Nov 8, 7:38*am, Sunny <s... (AT) sunny (DOT) in.th> wrote:
Quote:
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/.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #8  
Old   
Marnen Laibow-Koser
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-08-2009 , 12:09 PM



Rick Lloyd wrote:
Quote:
actually what you want is "pg"

gem list pg => pg (0.8.0)
Either pg or postgres will work.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen (AT) marnen (DOT) org
--
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #9  
Old   
Antony Prabhu
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-09-2009 , 01:36 AM



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

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #10  
Old   
Marnen Laibow-Koser
 
Posts: n/a

Default Re: Active Scaffold --- Help Urgent - 11-09-2009 , 06:56 AM



Antony Prabhu wrote:
Quote:
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
That should not be necessary. Try the postgres gem, not postgres-pr.

Quote:
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 ....
What?

Quote:
Kindly provide you valuable Ideas.....

- Antony Nambikkai
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen (AT) marnen (DOT) org
--
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 rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.