Sha256: 3fe11c5c8f8d5baf94b78bf50b9e0398503d820347c5d6c6bf67ddaeeaac2e2f

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

<p><a href="{{path}}/_list/<%= pluralized_model_name %>/<%= pluralized_model_name %>">List <%= pluralized_model_name.humanize %></a></p>
<form action="{{path}}/_update/<%= pluralized_model_name %>" method="post" accept-charset="utf-8">
  <p>
    <label for="id">ID</label><br/>
    <input type="text" name="id" value="{{id}}" id="id" />
  </p>
<% attributes.each do |attribute| -%>
  <p>
    <label for="<%= attribute %>"><%= attribute.humanize %></label><br/>
    <input type="text" name="<%= attribute %>" value="{{<%= attribute %>}}" id="<%= attribute %>" />
  </p>
<% end -%>
  <p><input type="submit" value="Create <%= model_name.humanize %>"></p>
</form>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rid-0.4.1 lib/rid/generators/show/templates/form.mustache