I've tried that; there are lots of things out there that assume the primary key is called "id" -- this simple fix makes all of them work.
Even if I remove it, though, I still get the same weird loading behavior. :( Rob Biedenharn wrote: > On Feb 9, 2009, at 4:47 PM, Brent Miller wrote: > >> set_primary_key 'pidm' >> alias_attribute :id, :pidm >> end > > I'm not sure if it changes your situation, but you shouldn't need that > alias_attribute. Just use id and ActiveRecord should use your real > primary key column under the covers. > > -Rob -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

