A workaround that I found was to explicitly state in controller
render :action => :some_action, :layout => false
otherwise JavaScript fails to work
Anyone found this problem or maybe something is wrong with my configuration...
A workaround that I found was to explicitly state in controller
render :action => :some_action, :layout => false
otherwise JavaScript fails to work
Anyone found this problem or maybe something is wrong with my configuration...
it's a normal behaviour. How he know that you don't want render this layout ?
You can avoid the layout to all of your js format in add in your ApplicationController
Class ApplicationController
layout :no_in_js_format
def no_in_js_format
if request.format == :js
return nil
else
return 'application
end
end
end