<%= semantic_form_for @comment do |f| %> <%= error_messages_for :comment %> <% f.inputs do %> <%= f.errors_on :body, :class => "string required error" %> <%= f.input :body, :label => "Your Current Comment", :input_html => { :class => :mceEditor } %>
  • <%= f.inline_errors_for :body -%>
  • <%= f.input :contact_id, :as => :hidden, :include_blank => false %> <%= f.input :loop_id, :as => :hidden %> <% end %> <%= f.buttons %> <% end %> <%= link_to 'Back to News', loop_path(@loop) %> <% unless current_user.admin_id > 1 %> <%= link_to 'Edit', edit_loop_path(@loop) %> | <%= link_to 'Back', loops_path %> <% end %> <% else %> <%= link_to 'Log in to comment', login_path %> <% end %>