openSUSE/osem

View on GitHub
lib/templates/erb/scaffold/_form.html.erb

Summary

Maintainability
Test Coverage
<%%= semantic_form_for @<%= singular_name %> do |f| %>
  <%%= f.inputs do %>
  <%- attributes.each do |attribute| -%>
    <%%= f.input :<%= attribute.name %> %>
  <%- end -%>
  <%% end %>

  <%%= f.actions do %>
    <%%= f.action :submit, :as => :input %>
  <%% end %>
<%% end %>