bootstrap-editable-rails
bootstrap-editable-rails copied to clipboard
All success responses are rendered as errors
All 200 response (including render :nothing
) are rendered as errors.
Here's a vanilla app that shows this behavior: https://github.com/gavinhughes/editable.
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.
Tested the vanilla app on '2.1.4' and found no issues. It's only on '2.2.0'.
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