Displaying 2 results from an estimated 2 matches for "record_identifier".
2009 Nov 18
4
rails newbie : routing error
...or @e1 do |er| %>
2: <p>
3: name :<br />
4: <%= er.text_field :name %>
I have the @e1 defined correctly in the controller (how can it work
when I go to the new page directly using localhost:300/expenses/new ).
And the trace :
vendor/rails/actionpack/lib/action_controller/record_identifier.rb:
72:in `dom_id''
vendor/rails/actionpack/lib/action_view/helpers/
record_identification_helper.rb:16:in `dom_id''
vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:264:in
`apply_form_for_options!''
vendor/rails/actionpack/lib/action_view/helpers/form_helper.r...
2012 Aug 07
9
How do I force link_to/form helpers to use the superclass name in the path instead subclass?
I want my helpers to generate paths using a superclass instead of the
subclasses. Assuming I have Owner and Member that both inherit from User,
rails will use the current objects class name when generating paths:
Let''s say current_user is a mod: <%= link_to current_user.name,
current_user %> will generate "/mod/:id". I want to force it to generate