[Rails] Re: Primary Key Field name - Problem

2009-03-29 Thread Devi Rv
Thanks you for your reply. Now it's working. -- 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 rubyonrails-t

[Rails] Re: Primary Key Field name - Problem

2009-03-28 Thread Conrad Taylor
On Sat, Mar 28, 2009 at 5:55 AM, Conrad Taylor wrote: > On Sat, Mar 28, 2009 at 5:40 AM, Craig Demyanovich > wrote: > >> You can call set_primary_key: >> >> class MyModel < ActiveRecord::Base >> set_primary_key "us_id" >> end >> >> See: >> http://www.railsbrain.com/api/rails-2.3.2/doc/index.ht

[Rails] Re: Primary Key Field name - Problem

2009-03-28 Thread Conrad Taylor
On Sat, Mar 28, 2009 at 5:40 AM, Craig Demyanovich wrote: > You can call set_primary_key: > > class MyModel < ActiveRecord::Base > set_primary_key "us_id" > end > > See: > http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M002340&name=set_primary_key > > Regards, > Craig > > > -- > Crai

[Rails] Re: Primary Key Field name - Problem

2009-03-28 Thread Craig Demyanovich
You can call set_primary_key: class MyModel < ActiveRecord::Base set_primary_key "us_id" end See: http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M002340&name=set_primary_key Regards, Craig -- Craig Demyanovich Mutually Human Software http://mutuallyhuman.com --~--~-~--~