I dont think it's the problem with requiring the "sequel/plugins/
active_model.rb". It's the requiring of RAILS active_model
(unfortunately has the same name, which generates a misleading error).
first line of the plugin requires that.

make sure you can load RAILS active_model in your environment first,
then the plugin should work.

-mooman

On Apr 1, 10:31 am, Michael Lang <[email protected]> wrote:
> Is it a Ruby 1.8 vs. 1.9 problem?  I thought I saw references to 1.9 in
> prior emails...and the messages below are pulling from 1.8...
>
> Michael
>
> 2010/4/1 Amit Chakradeo (अमित चक्रदेव) <[email protected]>
>
>
>
> > I have the same problem (this didn't happen for the version 3.8.0)
> > Here is the error trace:
>
> > irb(main):001:0> require 'sequel'
> > => true
> > irb(main):002:0> require 'sequel/plugins/active_model'
> > LoadError: no such file to load -- active_model
> >         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require'
> >         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `require'
> >         from
> > /home/ac/rubygems/gems/sequel-3.9.0/lib/sequel/plugins/active_model.rb:1
> >         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require'
> >         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `require'
> >         from (irb):2
>
> > Is this because the first line in plugins/active_model.rb is require
> > 'active_model' ?
>
> > --Amit
>
> > On Thu, Apr 1, 2010 at 9:59 AM, Jeremy Evans <[email protected]>wrote:
>
> >> On Apr 1, 9:18 am, GregD <[email protected]> wrote:
> >> > On Apr 1, 12:02 pm, Jeremy Evans <[email protected]> wrote:
>
> >> > > This is very odd.  Does the following file exist?:
> >> /usr/local/lib/ruby/
> >> > > gems/1.9.1/gems/sequel-3.9.0/lib/sequel/plugins/active_model.rb
>
> >> > Yes it does.
>
> >> What happens when you do the following?:
>
> >>  require 'sequel'
> >>  require 'sequel/plugins/active_model'
> >>   Sequel::Model.plugin :active_model
>
> >> 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]<sequel-talk%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/sequel-talk?hl=en.
>
> >  --
> > 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]<sequel-talk%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/sequel-talk?hl=en.
>
> --http://codeconnoisseur.org

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