Just see loading gif when clicking on an editable
dassie opened this issue · comments
I have followed the instructions in the front page. When I click on a editable I only see the loading gif and nothing else. From looking at my logs it doesn't seem to be trying to make a request to anything.
My model responds to JSON and I tested the view to confirm it.
What should I try doing?
I had the same problem in that the loading gif would never go away even though my controller action was being called correctly and the model attribute was being successfully updated.
In my controller after a successful update, I was simply returning a success 200 header like so:
head :ok
As outlined here: http://guides.rubyonrails.org/layouts_and_rendering.html#using-head-to-build-header-only-responses
However, the fix for me was actually returning JSON like so:
render json: { success: true }
Read more here: #21
Hope that helps!