Forum: Ruby on Rails will the controller compiles the rjs only on ajax request ?

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.
--- Z@m --- (Guest)
on 2009-04-28 18:29
(Received via mailing list)
will the controller compiles the rjs only on ajax request ?

class xyzController < .....
 def ajax_req
    ""This works fine ""
    """ajax_req.rjs is not compiled"""
 end
 def non_ajax_req
    """ non_ajax_req.rjs is not compiled"""
 end
end

Am i right or my code lacks something ?
This topic is locked and can not be replied to.