#476 open
Bryan Larsen

auto_actions_for sometimes doesn't use correct reflection

Reported by Bryan Larsen | July 31st, 2009 @ 05:32 PM | in Beyond Hobo 1.0

system_users_controller.rb:

auto_actions_for :user, [:index]

user.rb:

has_many :system_users, :dependent => :destroy, :accessible => true
has_many :systems, :through => :system_users, :accessible => true
has_many :active_system_users, :class_name => "SystemUser", :scope => :active
has_many :active_systems, :through => :active_system_users, :source => :system

The route that is generated is /users/:user_id/active_system_users, but I want /users/:user_id/system_users. We need a way to tell Hobo which reflection to use. (There may be a way, I haven't actually looked yet).

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 ยป

People watching this ticket

Referenced by

Pages