Sha256: 8a73d9cb102e6b5d37521bb1f599df571855ab6863ed679a6f4767a1f5f5cfe9

Contents?: true

Size: 923 Bytes

Versions: 60

Compression:

Stored size: 923 Bytes

Contents

<%= form_tag send(@object.class.to_s.underscore + '_path', :update => @update_span ,
  :attribute => @attribute,
  :form_element => @form_element,
  :sub_id => @sub_id ),
  :method => :put, # this is going to the update method!
  :multipart => true,
  :class  => "edit_form",
  :remote => true do -%>
  <div class="edit_form_field">
    <%= send("#{@form_element}_edit", @object, @attribute) %>
  </div>
  <%= link_to( send( @object.class.to_s.underscore + '_path', :update => @update_span || "field_#{@attribute}_#{@object.id.to_s}",
      :attribute => @attribute,
      :form_element => @form_element,
      :sub_id => @sub_id ),
    :method => :get, # this is going to the show method!
    :class  => "edit_form_cancel",
    :remote => true ) do %>
    <input type="button" name="cancel" value="cancel" />
  <% end %>
  <%= submit_tag "ok", :class => "edit_form_submit"-%>
  <div style="clear: both;"></div>
<% end -%>

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
inline_forms-1.3.10 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.9 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.8 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.7 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.6 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.5 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.4 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.3 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.2 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.1 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.3.0 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.9 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.8 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.7 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.5 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.4 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.3 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.2 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.1 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.2.0 lib/app/views/inline_forms/_edit.html.erb