bootstrap-editable-rails icon indicating copy to clipboard operation
bootstrap-editable-rails copied to clipboard

All success responses are rendered as errors

Open gavinhughes opened this issue 12 years ago • 3 comments

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

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

gavinhughes avatar Jan 23 '13 06:01 gavinhughes

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.

tkawa avatar Jan 24 '13 11:01 tkawa

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

gavinhughes avatar Jan 25 '13 12:01 gavinhughes

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

tkawa avatar Jan 29 '13 18:01 tkawa