place a hidden field in the form, add link_to_function and change the value
of the hidden field with javascript.
In the controller if the value of the hidden fill is empty the comment has
no parent, else it does.
example with jquery
$("#the_form [type=hidden]").val("<%=comment.id%>")
this wi
I am trying to allow users to reply through comments by allowing users
to click a reply link next to the parent comment. It will send in a
parameter to the 'new' comment view, like so:
| <%= link_to "Reply", new_comment_path(:in_reply_to => comment.id) %>
The form will use the :in_reply_to para
2 matches
Mail list logo