Skip to content

Commit

Permalink
fixed form action
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Feb 13, 2009
1 parent 38cde3c commit b33669e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rails_generators/themed/templates/view_edit.html.erb
Expand Up @@ -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 %>
Expand Down
2 changes: 1 addition & 1 deletion rails_generators/themed/templates/view_show.html.erb
Expand Up @@ -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>
Expand Down

0 comments on commit b33669e

Please sign in to comment.