generators/dry_scaffold/templates/views/haml/new.html.haml in dry_scaffold-0.3.7 vs generators/dry_scaffold/templates/views/haml/new.html.haml in dry_scaffold-0.3.8
- old
+ new
@@ -1,7 +1,7 @@
%h1.heading
- = 'New <%= singular_name.humanize %>'
+ = 'New <%= model_singular_name.humanize %>'
<% if options[:formtastic] -%>
- semantic_form_for(<%= resource_instance %>) do |form|
= render 'form', :form => form
- form.buttons do
@@ -13,6 +13,6 @@
%p.buttons
= form.submit 'Create'
<% end -%>
%p.actions
- = link_to 'Cancel', <%= index_path %>
\ No newline at end of file
+ = link_to 'Cancel', <%= index_path %>