Sha256: 440f6fe008fed49aaf07a4eeae20e3550d31ae10c6b9d35069c85690d16a8bea
Contents?: true
Size: 934 Bytes
Versions: 43
Compression:
Stored size: 934 Bytes
Contents
<div data-role="page"> <div data-role="header" data-position="inline"> <%%= link_to "Back", :action => :show, :id => @<%= name.downcase %>.object %> <h1>Edit <%%= @<%= name.downcase %>.<%= attributes[0] %>%></h1> <%%= link_to "Delete", :action => :delete, :id => @<%= name.downcase %>.object %> </div> <div data-role="content"> <form method="POST" action="<%%= url_for :action => :update %>"> <input type="hidden" name="id" value="<%%= @<%= name.downcase %>.object %>"/> <table> <% attributes.each do |attribute| %> <tr> <td class="itemLabel"><%= humanize(attribute) %>: </td> <td class="itemValue"><input type="text" name="<%= name.downcase %>[<%= attribute %>]" value="<%%= @<%= name.downcase %>.<%= attribute %> %>"/></td> </tr> <% end %> </table> <input type="submit" value="Update"/> </form> </div> </div>
Version data entries
43 entries across 43 versions & 1 rubygems