Sha256: 1962564d429cd8883a2521eb957c13f8de9793ce36d8a07a9e39276ac433bf95
Contents?: true
Size: 774 Bytes
Versions: 5
Compression:
Stored size: 774 Bytes
Contents
<<%='%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%'%>> <c:if test="${not empty errors}"> <c:forEach items="${errors}" var="error"> ${error.category} - ${error.message}<br /> </c:forEach> </c:if> <form action="<%= path %>" method="post"> <c:if test="${not empty <%= @model %>.id}"> <input type="hidden" name="<%= @model %>.id" value="${<%=@model%>.id}"/> <input type="hidden" name="_method" value="put"/> </c:if> <% @attributes.each do |att| -%> <div class="field"> <%= att.name.capitalize %>:<br /> <input type="text" name="<%= @model %>.<%=att.name%>" value="${<%=@model%>.<%=att.name%>}"/> </div> <% end -%> <div class="actions"> <button type="submit">send</button> </div> </form> <a href="<%= path %>">Back</a>
Version data entries
5 entries across 5 versions & 1 rubygems