#864 open
Tiago Franco

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Attachments

Pages