Ruby on Rails Thursday, June 15, 2017

I'm iterating through @posts in my view and each iteration has a comment link I'm responding format.js using a js.erb file to render the comment form within the DOM instead of reloading the page The problem is that the element name in my js.erb file is fixed while each post has a different id number How can I render the form only for that post?

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment