diff --git a/app/controllers/discussions_controller.rb b/app/controllers/discussions_controller.rb index c18933c..8252501 100644 --- a/app/controllers/discussions_controller.rb +++ b/app/controllers/discussions_controller.rb @@ -68,6 +68,7 @@ class DiscussionsController < ApplicationController def allow_discussions @page = Page.find(params[:id]) status = 500 - + status = 200 if @page.update_attribute(:allow_discussions, true) + render :nothing => true, :status => status end end