Skip to content

Commit

Permalink
edit shipping methods was not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
David Henner committed Feb 24, 2011
1 parent ef66da6 commit 0245de9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions app/views/admin/config/shipping_methods/_form.html.erb
Expand Up @@ -10,17 +10,18 @@
</ul>
</div>
<% end %>

<div class="field">
<%= f.input :name %>
<%= f.label :name %>
<%= f.text_field :name %>
</div>

<div class="field">
<%= f.input :shipping_zone_id, :as => :select,
:collection => @shipping_zones %>
<%= f.label :shipping_zone_id %>
<%= f.select :shipping_zone_id, :collection => @shipping_zones.collect{|sz| [sz.name, sz.id] } %>
</div>


<div class="actions">
<%= f.submit %>
</div>
2 changes: 1 addition & 1 deletion app/views/admin/config/shipping_methods/edit.html.erb
@@ -1,7 +1,7 @@
<%= render :partial => '/admin/config/sub_header'%>
<h1>Editing Shipping Method</h1>

<%= semantic_form_for(:shipping_method, @shipping_method, :url => admin_config_shipping_method_path(@shipping_method)) do |f| %>
<%= form_for(@shipping_method, :url => admin_config_shipping_method_path(@shipping_method)) do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/config/shipping_methods/new.html.erb
@@ -1,7 +1,7 @@
<%= render :partial => '/admin/config/sub_header'%>
<h1>New Shipping Method</h1>

<%= semantic_form_for(:shipping_method, @shipping_method, :url => admin_config_shipping_methods_path) do |f| %>
<%= form_for(@shipping_method, :url => admin_config_shipping_methods_path) do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
Expand Down

0 comments on commit 0245de9

Please sign in to comment.