new_preferences.each_value(&:save!)
- render :nothing => true, :content_type => "text/plain"
+ render :plain => ""
end
##
pref.v = request.raw_post.chomp
pref.save!
- render :nothing => true, :content_type => "text/plain"
+ render :plain => ""
end
##
def delete_one
UserPreference.find([@user.id, params[:preference_key]]).delete
- render :nothing => true, :content_type => "text/plain"
+ render :plain => ""
end
end