auto_actions_for does not work for STI child classes
Reported by Betelgeuse | September 13th, 2010 @ 12:45 PM
Steps to reproduce
- Specific < Generic
- Specific has_many :childs
- ChildController has auto_actions_for :specific, [:new, :index, :create]
Problems:
- Hobo generates taglib pages as index-for-generic-page
- Template is searched as childs/new_for_specific.erb
Result:
And I follow "New Child" # features/step_definitions/web_steps.rb:27
Missing template campaigns/new_for_specific.erb in view path app/views (ActionView::MissingTemplate)
Comments and changes to this ticket
-
Betelgeuse September 13th, 2010 @ 12:52 PM
I was quite sure I had run hobo:generate_taglibs but tried it again and now I got the correct taglibs generated. Guess this is invalid then (or there is something funky in generate_taglibs).
-
Matt Jones September 14th, 2011 @ 09:40 PM
- State changed from new to invalid
Marking as invalid.
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 ยป