lib/templates/erb/scaffold/new.html.erb in rieles-0.0.4 vs lib/templates/erb/scaffold/new.html.erb in rieles-0.0.5

- old
+ new

@@ -1,5 +1,5 @@ -<% nuevo = singular_table_name.split('_')[0].ends_with?("a") ? 'Nueva' : 'Nuevo' -%> +<% nuevo = singular_table_name.split('_').first =~ /[ad]$/ ? 'Nueva' : 'Nuevo' -%> <h1><%= nuevo %> <%= human_name %></h1> <%%= render 'form' %> <%%= link_to 'Listado', <%= index_helper %>_path %>