Anyone know if Rails 3 supports PostgreSQL yet? I''m again trying on the latest beta, still not getting anything to work. I have every postgresql gem I can find installed:> gem list --local|grep ^ppg (0.9.0) postgres (0.7.9.2008.01.28) postgres-pr (0.6.3) My database.yml entry: development: adapter: postgresql database: rails3_dev username: rails3 password: rails3 Then when I try it, I get this: RuntimeError (Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (no such file to load -- pg)): I''m not finding a gem by that name:> gem install activerecord-postgresql-adapterERROR: could not find gem activerecord-postgresql-adapter locally or in a repository This page doesn''t even mention that gem: http://wiki.rubyonrails.org/database-support/postgres Anyone get this to work yet? -- Greg Donald destiney.com | gregdonald.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yeah it works fine, worked since the first beta. On Ubuntu these are the packages I installed: sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev Then all you need is the pg gem mentioned in your Gemfile. Maybe the fact you have the others installed is part of the problem, they are definitely not required for it to work, this is the only PostGres related gem I have in my Gemfile: gem "pg" On Apr 23, 7:19 pm, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone know if Rails 3 supports PostgreSQL yet? I''m again trying on > the latest beta, still not getting anything to work. > > I have every postgresql gem I can find installed: > > > gem list --local|grep ^p > > pg (0.9.0) > postgres (0.7.9.2008.01.28) > postgres-pr (0.6.3) > > My database.yml entry: > > development: > adapter: postgresql > database: rails3_dev > username: rails3 > password: rails3 > > Then when I try it, I get this: > > RuntimeError (Please install the postgresql adapter: `gem install > activerecord-postgresql-adapter` (no such file to load -- pg)): > > I''m not finding a gem by that name: > > > gem install activerecord-postgresql-adapter > > ERROR: could not find gem activerecord-postgresql-adapter locally or > in a repository > > This page doesn''t even mention that gem: > > http://wiki.rubyonrails.org/database-support/postgres > > Anyone get this to work yet? > > -- > Greg Donald > destiney.com | gregdonald.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Apr 24, 2010 at 7:56 PM, Ginty <stephen.f.mcginty-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Maybe the fact you have the others installed is part of the problemThat was the problem. It works fine when pg is the only gem installed. Thanks. -- Greg Donald destiney.com | gregdonald.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi.. i called Carina... i was either problem installed its gem.. 2010/4/26 Greg Donald <gdonald-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> On Sat, Apr 24, 2010 at 7:56 PM, Ginty <stephen.f.mcginty-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Maybe the fact you have the others installed is part of the problem > > That was the problem. It works fine when pg is the only gem installed. > Thanks. > > > -- > Greg Donald > destiney.com | gregdonald.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Carina Brito Silva -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
For me this helped to. Additionally I had to add "require ''pg''" to the Gemfile. Thanks. On 26 Kwi, 17:25, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sat, Apr 24, 2010 at 7:56 PM, Ginty <stephen.f.mcgi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Maybe the fact you have the others installed is part of the problem > > That was the problem. It works fine when pg is the only gem installed. Thanks. > > -- > Greg Donald > destiney.com | gregdonald.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.