Hello - I have a custom javascript confirm function that I wanted to add to a link_to method. The function replaces specific text fields depending if the user chooses cancel or ok. Can this be done?
you were trying to do in place editor, they have the method available to do that.
I think link_to_remote would be a better method to use. I can highly recommend you invest in "Ajax on Rails", which is the best thing I've read for describing how to use Javascript with Rails. There is a good section in chapter 3 called "Ajax links" that describes how to do what you want.
Forum Rules
Bookmarks