#421 ✓resolved
mkosma

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

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

Pages