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