Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: HTTP/1.1 406 Not Acceptable #3

Open
xpepermint opened this issue Jan 11, 2010 · 5 comments
Open

Bug: HTTP/1.1 406 Not Acceptable #3

xpepermint opened this issue Jan 11, 2010 · 5 comments

Comments

@xpepermint
Copy link

When POSTing data I get HTTP/1.1 406 Not Acceptable response insted of created. If I delete has_mobile_fu from my controller things are working again.

@daviscabral
Copy link

Are you using other plugin that handles mime types? I'm using community engine here and I'm having the same issue.

@smsm1
Copy link

smsm1 commented Jun 24, 2010

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.

@moll
Copy link

moll commented Mar 2, 2011

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.

@dcu
Copy link

dcu commented Dec 1, 2011

I have the same problem, I am using jquery-mobile and rails 3.1.3

@benlangfeld
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants