New comment

<% if cuser %> <%= form_for(@comment, :remote => true) do |f| %> <%= f.hidden_field :commentable_id %> <%= f.hidden_field :commentable_type %>

<%= f.text_area :text, :rows => 5, :cols => 40, :id => "textArea" %>

<%= f.submit 'Post Comment' %>

<% end %> <% else %> Please log in or <%= link_to "register", new_user_path %> to post comments. <% end %>