Sha256: ed44fb382bbb41eabedf8135f29444ace5d404b50b5c092d307394d3669b018a
Contents?: true
Size: 721 Bytes
Versions: 24
Compression:
Stored size: 721 Bytes
Contents
%h1 <%= class_name %>Command %p Find me in '<%= args.first %>'. = command_form_for(@command, :html => {:class => 'form-vertical'}) do |f| <% if defined?(SimpleForm) -%> = f.error_notification <% else -%> - if @command.errors.any? #error_explanation %h2= "#{pluralize(@command.errors.count, "error")} prohibited performing this action:" %ul - @command.errors.full_messages.each do |msg| %li= msg <%end -%> .form-inputs <% if command_attributes.any? -%> <% command_attributes.each do |attribute| -%> = f.input :<%= attribute.name %><%= attribute.inject_options %> <% end -%> <% else -%> -# TODO: provide inputs for each attribute <% end -%> .form-actions = f.submit
Version data entries
24 entries across 24 versions & 1 rubygems