Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5034

Show
Ignore:
Timestamp:
09/05/06 23:34:49 (2 years ago)
Author:
marcel
Message:

Use dom_id edit prefix in form_for

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/simply_helpful/lib/simply_helpful/form_helper_extensions.rb

    r5030 r5034  
    1616              { :class  => "new_#{object_name}_form", :id => nil, :method => :post } 
    1717            else 
    18               { :class  => "edit_#{object_name}_form", :id => "edit_#{dom_id(object)}", :method => :put } 
     18              { :class  => "edit_#{object_name}_form", :id => dom_id(object, :edit), :method => :put } 
    1919            end 
    2020