You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class ApplicationController < ActionController::Base
protect_from_forgery
layout Proc.new { |controller| controller.request.xhr? ? 'ajax' : 'application' }
end
class StoresController < ApplicationController
def search
end
end
When the search action is called through Ajax (passing the proper X-Requested-With:XMLHttpRequest header) only the 'application' layout will be rendered along with the view.
On the other side if we copy/move the layout declaration in StoresController it works.
The text was updated successfully, but these errors were encountered:
New connections:
jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb jdbcpostgresql
To test you will need the native database installed (if one is required),
activerecord-jdbc-adapter and the specific activerecord-jdbc<database>-adapter
for the database you are testing.
Run the tests like this:
jruby -S rake test_jdbcmysql
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[rails#1685 state:committed]
When the search action is called through Ajax (passing the proper X-Requested-With:XMLHttpRequest header) only the 'application' layout will be rendered along with the view.
On the other side if we copy/move the layout declaration in StoresController it works.
The text was updated successfully, but these errors were encountered: