Ruby on Rails Thursday, June 22, 2017

On Saturday, June 17, 2017 at 9:32:55 PM UTC-4, Walter Lee Davis wrote:

> On Jun 17, 2017, at 11:31 AM, fugee ohu <> wrote:
> I previously had it working and when you clicked a comment link a new page with a form would load

If you have the form appearing on a new page now, and the form works and can submit and save a comment, then you can change the link to the comment form to include remote: true. Then create a new.js.erb file in the same views folder as your current new.html.erb file.

Use Gist or another pastbin to show me what your _form.html.erb looks like, and what your index.html.erb (specifically your content_tag_for helper) looks like at the moment. That will determine what we put into the new.js.erb file.


I have <%= render post.comments %> in  _post.html.erb This doesn't use the view app/views/comments/_comment.html.erb I don't know what view it calls, it doesn't seem to call any partial view at all ... ?

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