I'm playing with Rails 3, and on one of my controllers I have the
following update method defined:
@category = @user.categories.find(params[:id])
I'm using Jquery to interact with the controllers, and when I do an
ajax PUT, the update action is correctly executed (the fields are
updated), but the action returns an empty JSON object, which causes
the Jquery ajax function to fall into an error.
I'm I doing something wrong?
Thank you all,