Sha256: ef914024f439decfa414c84d21d1be39bb7dd958204fcfb7c96190a524f7d8bf

Contents?: true

Size: 634 Bytes

Versions: 11

Compression:

Stored size: 634 Bytes

Contents

<h1>New <%= @name_singular_camel %></h1>

<%%= error_messages_for :<%= @name_singular %> %>

<%% form(<%= @name_singular %>s_create_url, :class => "new_<%= @name_singular %>", :id => "new_<%= @name_singular %>") do %>
<% for column in columns -%>
<% unless column.column_name == "created_at" || column.column_name == "updated_at" -%>
  <p>
    <b><%= column.column_name.singular.camelcase %></b><br />
    <%= column.form_field %>
  </p>
<% end -%>
<% end -%>
  <p>
    <input id="<%= @name_singular %>_submit" name="commit" type="submit" value="Create" />
  </p>
<%% end %>

<%%= link_to("Back", <%= @name_singular %>s_index_url) %>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
mack-active_record-0.6.0 lib/scaffold_generator/templates/app/views/new.html.erb.template
mack-active_record-0.6.1.1 lib/mack-active_record/scaffold_generator/templates/app/views/new.html.erb.template
mack-active_record-0.6.0.1 lib/scaffold_generator/templates/app/views/new.html.erb.template
mack-active_record-0.5.0 lib/scaffold_generator/templates/app/views/new.html.erb.template
mack-active_record-0.5.1 lib/scaffold_generator/templates/app/views/new.html.erb.template
mack-active_record-0.5.5 lib/scaffold_generator/templates/app/views/new.html.erb.template
mack-active_record-0.6.1.2 lib/mack-active_record/scaffold_generator/templates/app/views/new.html.erb.template
mack-active_record-0.6.1 lib/mack-active_record/scaffold_generator/templates/app/views/new.html.erb.template
mack-data_mapper-0.5.5 lib/scaffold_generator/templates/app/views/new.html.erb.template
mack-data_mapper-0.5.0 lib/scaffold_generator/templates/app/views/new.html.erb.template
mack-data_mapper-0.5.1 lib/scaffold_generator/templates/app/views/new.html.erb.template