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 <fuge...@gmail.com> 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.

Walter

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 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/ad17469d-6a02-403a-890f-4dbc63290c4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment