lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/_form.html.erb in humdrum-rails-0.0.8 vs lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/_form.html.erb in humdrum-rails-0.0.9

- old
+ new

@@ -44,10 +44,10 @@ <%%= form_for(@<%= instance_name %>, :html => {:id=>"form_<%= instance_name %>", :class=>"margin-bottom-0", :method => (@<%= instance_name %>.new_record? ? :post : :put), :remote=>true}) do |f| %> >>>>>>> External Changes <%%= @<%= instance_name %>.errors[:base].to_sentence %> - <%%= hidden_field_tag :faction, @<%= instance_name %>.new_record? ? <%= instances_name %>_path : <%= instance_name %>_path(@<%= instance_name %>) %> + <%%= hidden_field_tag :faction, @<%= instance_name %>.new_record? ? <%= resource_link('show', 'path') %> : <%= <%= resource_link('show', 'path') %>(@<%= instance_name %>) %> <%%= hidden_field_tag :fmethod, @<%= instance_name %>.new_record? ? "POST" : "PUT" %> <div class="form-inputs"> <%- fields.each do |name, type| %>