Comments (5)
Are you using other plugin that handles mime types? I'm using community engine here and I'm having the same issue.
from mobile-fu.
The problem is probably due to you having respond_to do |format| .... end with no format.mobile or format.html in there. As your controller does not know how to deal with the format that has been specified, it simply returns 406 not acceptable. The other option is that you lack a view for the format that was requested.
from mobile-fu.
If you're using jQuery Mobile along with the jquery-rails gem, jQuery Mobile makes its own Ajax request in which it only accepts html type. The jquery-rails way handles returned JavaScript, too. Your app is probably returning a format that the requester doesn't want.
from mobile-fu.
I have the same problem, I am using jquery-mobile and rails 3.1.3
from mobile-fu.
This project is abandoned. Please see the active fork at http://github.com/benlangfeld/mobile-fu. Please test with the released gem and master branch of the new home for the project, and file an issue on the other repo if you still have problems.
See #40.
from mobile-fu.
Related Issues (20)
- set_mobile_format's XHR filter breaks jQuery Mobile HOT 8
- Plugin not Found HOT 1
- mobile-fu and jQuery Mobile HOT 13
- Does not load layout HOT 3
- Gem differs from plugin... issues with gem. HOT 4
- Exclude iPad from mobile view HOT 16
- is_mobile_view? is now in_mobile_view? HOT 7
- breaks assets pipeline HOT 2
- Should session[:mobile_view] be checked in is_mobile_device? HOT 3
- fallback to html HOT 11
- rails 3.1 and 3.2 asset pipeline HOT 3
- IE Browsers and False Positives HOT 3
- update regexes list with the ones from Mobile_Detect HOT 1
- how to design screen size? HOT 1
- how to contain view mobile in a new folder HOT 2
- devise not render view mobile when click link HOT 1
- Please close this repo or add link to https://github.com/benlangfeld/mobile-fu HOT 6
- Broken link
- Rails 5 deprecation warning on "before_filter" HOT 1
- Mobile_fu shows Mobile Site to Search Bots (googlebot) instead of Desktop Site HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-fu.