On Dec 14, 4:45 pm, Joel VanderWerf <[email protected]> wrote:
> Any idea what might be going wrong here?
>
> $ irb
>  >> require 'pg'
> => true
>  >> require 'sequel'
> => true
>  >> require 'sequel_pg'
> NameError: uninitialized constant Sequel::Postgres
>         from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in 
> `const_get'
>         from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in 
> `require'
>         from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in 
> `rescue
> in require'
>         from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in 
> `require'
>         from (irb):3
>         from /usr/local/bin/irb:12:in `<main>'

You should not attempt to load sequel_pg directly.  The Sequel
postgres adapter will automatically pick it up if it is installed and
pg is being used as the driver.

The error message makes sense.  sequel_pg assumes Sequel::Postgres is
already loaded, but you haven't yet loaded it, hence the NameError
when you reference it.

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en.

Reply via email to