On Sep 13, 8:47 am, Javier Ruiz <[email protected]> wrote: > I even tried to force the class name like: > > class Anotherclass < ActiveRecord::Base > has_one :childclass, :class_name => "Childclass" > end > > But same thing, the has_one relation goes to parent class to try to find > the relational id.
If you want to change the name of the foreign key, use the :foreign_key option. Fred > > Anyone can help with this please?? > Thanks in advance! -- 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.

