Permalink
Browse files

fixed form action

  • Loading branch information...
1 parent 38cde3c commit b33669e93a27ebec91af121d9221946753ad42bb @pilu pilu committed Feb 13, 2009
View
2 rails_generators/themed/templates/view_edit.html.erb
@@ -10,7 +10,7 @@
<div class="content">
<h2 class="title">Edit <%= model_name %></h2>
<div class="inner">
- <%% form_for @<%= model_name.downcase %>, :url => <%= controller_routing_path %>_path, :html => { :class => :form } do |f| -%>
+ <%% form_for @<%= model_name.downcase %>, :url => <%= singular_controller_routing_path %>_path(@<%= resource_name %>), :html => { :class => :form } do |f| -%>
<% columns.each do |column| %>
<div class="group">
<%%= f.label :<%= column.name %>, "<%= column.name %>", :class => :label %>
View
2 rails_generators/themed/templates/view_show.html.erb
@@ -15,7 +15,7 @@
<%%= @<%= resource_name %>.<%= column.name %> %>
</p>
<%- end -%>
- <%%= link_to 'Edit', edit_<%= resource_name %>_path(@<%= resource_name %>) %>
+ <%%= link_to 'Edit', edit_<%= singular_controller_routing_path %>_path(@<%= resource_name %>) %>
</div>
</div>
</div>

0 comments on commit b33669e

Please sign in to comment.