[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

View javascript generated by rjs

Jack Yang

4/13/2009 3:49:00 AM

One quick question: How can I see the javascript code generated by my
rjs template?
--
Posted via http://www.ruby-....

1 Answer

Phlip

4/13/2009 12:29:00 PM

0

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/browse_thread/thread/49fd7c...