2010/6/21 André Ribeiro <[email protected]>:
> Hi,
>
> This is working in production but not on my development box. So I
> either did something wrong or it got broken in the last versions of
> Hobo.
>
> championship.rb
> has_many :memberships, :class_name => "ChampionshipMembership", :order
> => "score DESC, goals DESC", :dependent => :destroy
>
> championship_controller.rb
> auto_actions_for :championship, [:new, :create, :index]
>
> When I go to champioships/5/memberships, it throws an error saying
> that the route doesn't exist (i.e. unknown action). However the
> controller championship_memberships is exporting the route
> index_for_championship.

Something's crossed here - putting that auto_actions_for line in
ChampionshipsController is probably not what you want. As written
above, it would generate routes like:

/championships/:championship_id/championships

--Matt Jones

-- 
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.

Reply via email to