auto_actions_for doesn't create "Add ..." button in sidebar
Reported by mkosma | May 14th, 2009 @ 08:23 PM
auto_actions_for creates an Add button only for the first Object listed in the ObjectHints class.
E.g., in the following scenario, the "New Alternate Name" button vanishes if the order of the :children are changed in the EmployeeHints class.
class Employee
... has_many :alternate_names, :dependent => :destroy,
:accessible => true has_many :projects, :through =>
:employee_projects, :accessible => true ... end
In AlternateNamesController, I have
auto_actions_for :employee, [:create, :new]
In EmployeeHints, I have
children :alternate_names, :projects
Comments and changes to this ticket
-
Bryan Larsen October 22nd, 2009 @ 09:31 PM
- Tag changed from hobo, rapid, viewhints to enhancement, hobo, rapid, viewhints
- State changed from new to resolved
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 ยป