Sha256: 1c74199709ba013e894a8895254ee2b1e164725b64f7c40c3686f2e5167fb244
Contents?: true
Size: 1017 Bytes
Versions: 15
Compression:
Stored size: 1017 Bytes
Contents
<%= form_for [@post, @comment], remote: true, html: { class: "new_blog_comment", id: "new_blog_comment" } do |f| -%> <p>Leave a comment</p> <%= field class: "hidden" do %> <%= f.label :nickname %> <%= f.text_field :nickname %> Hide me using CSS <% end %> <%= field do %> <%= f.label :name, "Name *" %><br> <%= f.text_field :name %> <%= errors_on(@comment, :name) %> <% end %> <%= field do %> <%= f.label :email, "Email" %> (never displayed)<br> <%= f.email_field :email %> <%= errors_on(@comment, :email) %> <% end %> <%= field do %> <%= f.label :website, "Your Website" %><br> <%= f.url_field :website %> <%= errors_on(@comment, :website) %> <% end %> <%= field do %> <%= f.label :body, "Your comment *" %><br> <%= f.text_area :body %><br> <%= errors_on(@comment, :body) %> <% end %> <%= actions do %> <%= f.submit "Add Comment", :disable_with => 'Adding Comment...' %> <% end %> <% end -%>
Version data entries
15 entries across 15 versions & 1 rubygems