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

All success responses are rendered as errors #7

Open
gavinhughes opened this issue Jan 23, 2013 · 3 comments
Open

All success responses are rendered as errors #7

gavinhughes opened this issue Jan 23, 2013 · 3 comments

Comments

@gavinhughes
Copy link
Contributor

All 200 response (including render :nothing) are rendered as errors.

Here's a vanilla app that shows this behavior: https://github.com/gavinhughes/editable.

@tkawa
Copy link
Member

tkawa commented Jan 24, 2013

Thank you.
It seems not to work with jQuery 1.9.
I have no idea where is wrong, please try this anyway in Gemfile:

gem 'jquery-rails', '2.1.4'

Basically, this gem and X-editable are for update.
X-editable has supported creating new record (with a bit problem).
http://vitalets.github.com/x-editable/docs.html#newrecord
but this gem has not yet.

@gavinhughes
Copy link
Contributor Author

Tested the vanilla app on '2.1.4' and found no issues. It's only on '2.2.0'.

@tkawa
Copy link
Member

tkawa commented Jan 29, 2013

head and render :nothing (include 204) will not work with jQuery 1.9.0.

To avoid it, you can respond with some value, not empty

format.json { render json: @post } # 200 OK

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

2 participants