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
If using the awesome jQuery Mobile, you should add this to your ApplicationController:
before_filter :set_request_format
def set_request_format
request.format = :mobile if is_mobile_device?
end
So it now looks like this:
class ApplicationController < ActionController::Base
protect_from_forgery
has_mobile_fu # Detect the device type
before_filter :set_request_format
def set_request_format
request.format = :mobile if is_mobile_device?
end
end
A great thanks to dmfrancisco for saving my bacon with this :-)