Sha256: ccf6935baf98f06a22d57ce61e9954e47b74b35d87f0e31782011c458d82ef21
Contents?: true
Size: 589 Bytes
Versions: 3
Compression:
Stored size: 589 Bytes
Contents
= form_for <%= item_path :instance_variable => true %>, :html => { :class => 'form-horizontal' } do |f| %fieldset %legend = form_action_title <%= singular_name.titleize %> <%- model_attributes.each do |attribute| -%> .control-group = f.label :<%= attribute.name %>, :class => 'control-label' .controls = f.<%= attribute.field_type %> :<%= attribute.name %>, :class => '<%= attribute.field_type %>' <%- end -%> .form-actions = f.submit nil, :class => 'btn btn-primary' = link_to 'Cancel', <%= items_path %>, :class => 'btn'
Version data entries
3 entries across 3 versions & 1 rubygems