Ruby on Rails Thursday, April 28, 2016

I have a rails 5 project and have followed this tutorial to implement
commenting:

http://railscasts.com/episodes/154-polymorphic-association-revised

Comments are listed below the instance that they are associated with, I
have creating and deleting comments working with ajax, but I can't work
out how to enable editing with ajax? I have it working with HTML - but
I'd rather be able to do this from the same page the comment is on.

Maybe the way I have this set up (polymorphic commentable objects and
collection of comments on the page) doesn't lend itself to editing like
this? If this is the case I may just leave it as it is, but I'd rather
make this work if its possible.. I've spent a few days trying to get
this to work, but no dice, and I can't find any examples.

Can anyone point me to a decent tutorial or give me some tips as to how
I can achieve this?

--
Posted via http://www.ruby-forum.com/.

--
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/732c4e9b0ac42616b234d3e9a6da4022%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment