Forum: Ruby View javascript generated by rjs

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
24429774a7859c9283caf73d3b1cb8aa?d=identicon&s=25 Chaoran Yang (jackyang)
on 2009-04-13 05:48
One quick question: How can I see the javascript code generated by my
rjs template?
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2009-04-13 14:30
(Received via mailing list)
Jack Yang 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/br...
This topic is locked and can not be replied to.