Hi all,
I'm building an application which uses mainly 3 models : User (the
hobo's one), Education and Experience which belong to a user. Here is
a sample of my code :
in the User model :
has_many :experiences, :class_name => "Experience", :dependent
=> :destroy, :foreign_key => "owner_id"
has_many :educations, :class_name => "Education", :dependent
=> :destroy, :foreign_key => "owner_id"
in the Experience model :
belongs_to :owner, :class_name => "User", :creator => true
in the Education model :
belongs_to :owner, :class_name => "User", :creator => true
I need the owner to be the only person that has the right to create
and modify his educations and experiences. So both Education and
Experience controllers have the :
auto_actions_for :owner, [:new, :create,:index]
My problem is that when I render the view of the current_user, one of
educations or experiences appears in the aside section of the view and
furthermore, there's no "new" link.
My questions are :
- How can I put both educations and experiences on the main containt
of my view ?
- Why the "new" doesn's appear for the collection which appears on the
aside content ?
Thanks for your help.
Regards,
Jaonary
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---