David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 5 years ago on Nested Comments from Scratch :
  Since the edit link_to  isn't a remote: true, you would be rendering a new view. You might be able to render the comment form within there. If you want it to be a bit more of an SPA feel, you could use the remote: true and then that would render the edit.js.erb where you can then render the form partial and display a modal.

If you want to make it load a new page to edit the comment, then you would need to render the form.

David Kimura PRO said over 5 years ago on Nested Comments from Scratch :
  You can check out this episode and the Part 1 of it as well. It uses jquery, but the same could be accomplished with vanilla JS if you're using something like Bootstrap 5 Alpha.


David Kimura PRO said over 5 years ago on User Notifications :
  Are you clicking on the email link which is then giving the NameError? Can you post the error?

David Kimura PRO said over 5 years ago on User Notifications :
Try changing it to main_app.root_path as the notification engine doesn't have context of root_path and needs the main app's root path.

David Kimura PRO said over 5 years ago on User Notifications :
It looks like the engine is trying to render the partial because of the "duplicate" notifications in the path timesink/app/views/notifications/notifications/_notification.html.erb