afeld / jeditable-rails

a gem to add in-place-editable fields to your Rails project
MIT License
34 stars 18 forks source link

Request as HTML #8

Closed wkhatch closed 13 years ago

wkhatch commented 13 years ago

When following the usage doc's, the responses are coming back using html, not js. Per the logs:

Processing by ObservationsController#update as HTML

afeld commented 13 years ago

I think an HTML response is most appropriate, since the result is being displayed as HTML directly. If you wanted to have conditional logic, you could add an if request.xhr? check in the controller. If you disagree, feel free to reopen the issue with your thoughts.