Displaying 2 results from an estimated 2 matches for "comments_form".
Did you mean:
comment_form
2006 Apr 25
2
JRS problem
Hi all,
I''m playing with the new RJS stuff. Very cool!
But I have a problem. The following code works ok:
page.select(''div.blogcomment'').each do |element|
page.visual_effect :highlight, element
end
All div''s with class blogcomment are highlighted correctly. But I just
want the last elemen to be hightlighted. The following code is not
working:
2010 Sep 17
25
Trying to look up comment through an ID, but failing
...; comment view, like so:
| <%= link_to "Reply", new_comment_path(:in_reply_to => comment.id) %>
The form will use the :in_reply_to parameter in order to save that id as
the parent id, like so:
comments_controller#new:
@comment_parent = Comment.find(params[:in_reply_to])
comments_form view:
<%= form_for([@comment]) do |f| %>
<%#= render ''shared/error_messages'', :object => f.object %>
<div class="field">
<%= f.label :title %><br />
<%= f.text_field :title %>
</div>
<div class...