Hi all!
I'm playing with Rails 3, and on one of my controllers I have the
following update method defined:
def update
@category = @user.categories.find(params[:id])
@category.update_attributes(params[:ecategory])
@category.save
respond_with @category
end
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,
Fabio.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment