I am using successfully the mobylette rails gem:
https://github.com/tscolari/mobylette
I was wondering if anybody knows of how to disable the gem for iPads…
Thanks a bunch!
Alex
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looks like the mobylette gem uses the code from mobile-fu (appears inactive, has issue #21 which is your problem).
The regex matches the iPad user agent on “mobile”
My suggestion — override the is_mobile_request? controller method to: