One quick question: How can I see the javascript code generated by my
rjs template?
Jack Y. wrote:
One quick question: How can I see the javascript code generated by my
rjs template?
That’s a Rails question, not Ruby, so put questions like it here:
news://news.gmane.org:119/gmane.comp.lang.ruby.rails
(And don’t dupe questions until you are out of options!)
View the code with a functional test:
xhr :get, :xhr_action
puts @response.body
View it in a browser with Firebug, and view it in tests with
assert_rjs_. Note
the trailing underbar:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/49fd7c9b9107d577