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 will put the id value of the selected comment in the form parent hidden
field

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to