I'm glad you got it figured out. - Matt
On Tue, Feb 10, 2009 at 10:44 AM, [email protected] < [email protected]> wrote: > > That's... odd. I was trying to make a simplified app to reproduce the > error (to post my model/migrations), and it worked. Then, when I > copied those back to the original application, it kept working, even > though I don't think I made any changes. While I in general don't > trust fixes that I don't understand, it looks like the issue here was > that the overridden create method wasn't being called by AR, and > somehow the copy back/forth ended up fixing that. > > This is one of the reasons that I don't like AR magic, but it's > working now so I'll put up with it =). > > On Feb 9, 7:08 pm, Ahsan Ali <[email protected]> wrote: > > I'm using merb-auth + AR on MRI ruby, and I've faced no AR-specific > > problems. > > > > Could it be something to do with Jruby ? > > > > On Tue, Feb 10, 2009 at 5:01 AM, [email protected] < > > > > [email protected]> wrote: > > > > > I've been playing around with merb-auth (and SaltedUser, and I'm > > > trying to get it to work with Activerecord (since I'm using Jruby), > > > but thus far, even with the provided mixin, it hasn't been working > > > well at all. > > > > > Whenever I attempt to add a user to the database, it fails with > > > "undefined method 'generated_methods' for nil:NilClass" when it tries > > > to save the attributes, which makes it seem like the class is being > > > lost somewhere. However, I have no idea why it would be doing that: I > > > have a user model named User, I've got a migration that adds the > > > appropriate table to the DB (and I'm pretty sure it has all the > > > columns I need), and I've included the SaltedUser Mixin. > > > > > Any idea what I could be doing wrong? > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
