Will the controller compiles the rjs only on ajax request?

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs