I refered to
http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/
in hope of getting json data from my controller and displaying it in
my view when an ajax request is made.
I followed the instructions on the
http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/
and even corresponded with the author and also implemented his
''fix''
in https://gist.github.com/1203326.
In relation to the article, I could never get the javascript in
application.js to display the value of ''name''.
In fact, the alert box does not even show up but when I delete
data.name from it, the alert box does show with the static message.
I can''t seem to get it to work.
Has anyone managed to get it to work?
Thank you all.
Gordon
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.