Sha256: daf958868f6c8104c75aeca40099863d294cde1dd6890617c3228f25bb3d20cf
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
<%= form_for(@comment, :remote => (params[:action] == 'new' ? true : false)) do |f| %> <% if @comment.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:</h2> <ul> <% @comment.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <fieldset> <legend class='required'> Required fields </legend> <div class="field"> <%= f.label :subject, :class => 'required' %><br /> <%= f.text_field :subject, :required => true %> </div> <div class="field"> <%= f.label :body, :class => 'required' %><br /> <%= f.text_area :body, :required => true %> </div> <% if params[:attachment] %> <div class="field"> <%= f.label :attachment %><br /> <%= f.file_field :attachment %> </div> <div class="field"> <%= f.label :other_attachment %><br /> <%= f.file_field :other_attachment %> </div> <% end %> </fieldset> <div class="actions"> <%= f.submit :data => {disable_with: "Submitting..."} %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remotipart-1.4.4 | spec/dummy_app/app/views/comments/_form.html.erb |
remotipart-1.4.3 | spec/dummy_app/app/views/comments/_form.html.erb |