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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dfbfbb0f-ba7a-4ee8-8d42-2c278fc6f458%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment