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
-
Bryan Larsen October 20th, 2009 @ 11:16 PM
- Milestone set to Beyond Hobo 1.0
-
Bryan Larsen October 22nd, 2009 @ 09:33 PM
- State changed from new to open
-
Bryan Larsen October 29th, 2009 @ 11:15 PM
- Tag set to enhancement, model-controller
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 ยป
People watching this ticket
Referenced by
- 486 rails 2.3.3.1 doesn't work Anyone see this before? It may or may not be related to t...