diff --git a/app/controllers/asks_controller.rb b/app/controllers/asks_controller.rb index b66bf87..0552a52 100644 --- a/app/controllers/asks_controller.rb +++ b/app/controllers/asks_controller.rb @@ -5,6 +5,7 @@ class AsksController < ApplicationController include ActionView::Helpers::FormOptionsHelper helper ActionView::Helpers::UrlHelper include ActionController::RequestForgeryProtection + include RuCaptcha::ViewHelpers def widget subpart = OrbitHelper.get_current_widget case subpart.widget_type @@ -89,6 +90,7 @@ class AsksController < ApplicationController def initialize super @app_title = 'ask' + self.request = OrbitHelper.request end def show ask_question = AskQuestion.where(id: @params['item']).first @@ -307,7 +309,7 @@ class AsksController < ApplicationController when 'appointment' f1['content'] = "