Sha256: 18ddfa11d79354143ed09fac6f5a2774555494039c54917514aa9fcffbdee62d

Contents?: true

Size: 880 Bytes

Versions: 10

Compression:

Stored size: 880 Bytes

Contents

<%= form_for @comment, :url => post_path(@post.url_name, :anchor => 'comment_form') do |f| %>
	
	<% if @comment.errors.any? %>
    <div class="comment_error_list">
      <h4>Please correct the following <%= pluralize(@comment.errors.count, "error") %>:</h4>
      <ul>
        <% @comment.errors.full_messages.each do |msg| %>
          <li><%= msg %></li>
        <% end %>
      </ul>
    </div>
	<% end %>

	<div class="form-group">
		<%= f.label :author %>
		<%= f.text_field :author, :class => 'form-control' %>
	</div>
	<div class="form-group">
		<%= f.label :content %>
		<%= f.text_area :content, :class => 'form-control' %>
	</div>
	<div class="comment_validity hidden">
		<%= label_tag 'Comment Validation' %>
		<%= text_field_tag 'comment_validation' %>
	</div>
	<div class="form-group">
		<%= f.submit 'Post Comment', :class => 'btn btn-primary' %>
	</div>

<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tb_blog-1.4.4 app/views/posts/_comment_form.html.erb
tb_blog-1.4.3 app/views/posts/_comment_form.html.erb
tb_blog-1.4.2 app/views/posts/_comment_form.html.erb
tb_blog-1.3.5 app/views/posts/_comment_form.html.erb
tb_blog-1.4.1 app/views/posts/_comment_form.html.erb
tb_blog-1.4.0 app/views/posts/_comment_form.html.erb
tb_blog-1.3.4 app/views/posts/_comment_form.html.erb
tb_blog-1.4.beta1 app/views/posts/_comment_form.html.erb
tb_blog-1.3.3 app/views/posts/_comment_form.html.erb
tb_blog-1.3.2 app/views/posts/_comment_form.html.erb