Sha256: c977523aa5ba0058e3e4ba421d6b08da0718a99d52978752332d5795dad603bc
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
<%= form_for(@foo) do |f| %> <% if @foo.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@foo.errors.count, "error") %> prohibited this foo from being saved:</h2> <ul> <% @foo.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <%= f.text_field :name %> <%= f.check_box :active, :label => 'Status', :inline_label => 'Active' %> <%= f.select :style, [select_prompt, "foo", "bar"], :label => 'Select a Style' %> <%= f.date_select :due_date, :order => [:month, :day, :year] -%> <%= f.submit %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mir_extensions-1.1.0 | app/views/foos/_form.html.erb |
mir_extensions-1.0.0 | app/views/foos/_form.html.erb |