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

Version Path
blogit-0.4.8 app/views/blogit/comments/_form.html.erb
blogit-0.4.7 app/views/blogit/comments/_form.html.erb
blogit-0.4.6 app/views/blogit/comments/_form.html.erb
blogit-0.4.5 app/views/blogit/comments/_form.html.erb
blogit-0.4.4 app/views/blogit/comments/_form.html.erb
blogit-0.4.3 app/views/blogit/comments/_form.html.erb
blogit-0.4.2 app/views/blogit/comments/_form.html.erb
blogit-0.4.1 app/views/blogit/comments/_form.html.erb
blogit-0.4.0 app/views/blogit/comments/_form.html.erb
blogit-0.3.2 app/views/blogit/comments/_form.html.erb
blogit-0.3.1 app/views/blogit/comments/_form.html.erb
blogit-0.3.0 app/views/blogit/comments/_form.html.erb
blogit-0.2.1 app/views/blogit/comments/_form.html.erb
blogit-0.2.0 app/views/blogit/comments/_form.html.erb
blogit-0.1.0 app/views/blogit/comments/_form.html.erb