DRYML gets confused on has_many routes
Reported by Tiago Franco | November 21st, 2010 @ 07:51 PM | in Hobo 1.4
See attached image
The models
championship
has_many :memberships, :class_name => "ChampionshipMembership", :order => "score DESC, goals DESC", :dependent => :destroy has_many :members, :through => :memberships, :source => :user
user
has_many :joined_championships, :through => :championship_memberships, :source => :championship
The controlers:
championships_controller
auto_actions_for :members, :index
the generated DRYML page:
see attached file
The dryml uses the var @member, but the variable instantiated by the hobo controller is @members.
Comments and changes to this ticket
-
Domizio Demichelis March 27th, 2011 @ 06:10 PM
- Milestone set to Hobo 1.0X
- Assigned user set to Bryan Larsen
- Milestone order changed from 197921 to 0
-
Matt Jones September 22nd, 2011 @ 04:16 AM
- State changed from new to open
- Milestone changed from Hobo 1.0X to Hobo 1.4
- Milestone order changed from 14 to 0
This is not currently supported - the
auto_actions_for
system is explicitly designed to work with one-to-many relations, not many-to-many.Moving to 1.4 as this might be a useful feature to add.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป