Permalink
Browse files

fixed problem with edit

  • Loading branch information...
1 parent f4c35c4 commit eb46b68616a7e8a83e082faadd213d9b06486967 @jcieslar committed Mar 18, 2012
@@ -1,4 +1,4 @@
-<%= semantic_form_for( resource, :url => collection_path, :namespace => "#{CustomizeAdmin.name_space}") do |f| %>
+<%= semantic_form_for( resource, :url => url, :namespace => "#{CustomizeAdmin.name_space}") do |f| %>
<%= render :partial => "all_form_inputs", :locals => { :f => f } %>
<%= render :partial => "more_form_inputs", :locals => { :f => f } %>
<div class="right"><%= f.submit "Save", :class => "btn large primary" %> </div>
@@ -1,6 +1,6 @@
<h1>Edit <%=resource_class.model_name.human%></h1>
<div class="form">
-<%= render 'form' %>
+ <%= render :partial => 'form', :locals => { :url => resource_path } %>
</div>
<%= link_to 'Show', resource_path(resource) %> |
<%= link_to 'Back', collection_url %>
@@ -1,7 +1,7 @@
<h1>New <%=resource_class.model_name.human%></h1>
<div class="form">
-<%= render 'form' %>
+ <%= render :partial => 'form', :locals => { :url => collection_path } %>
</div>
<%#= resource_class.attribute_names %>

0 comments on commit eb46b68

Please sign in to comment.