Ruby on Rails Saturday, June 17, 2017

> On Jun 17, 2017, at 11:31 AM, fugee ohu <fugee279@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

--
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/D3A79444-5096-4DB8-A7ED-47EA5B418E4D%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment