diff --git a/app/controllers/asks_controller.rb b/app/controllers/asks_controller.rb index 145b56f..d4621d2 100644 --- a/app/controllers/asks_controller.rb +++ b/app/controllers/asks_controller.rb @@ -114,12 +114,6 @@ class AsksController < ApplicationController end def index @params = OrbitHelper.params - case ((@params['method'] rescue params['method']) rescue nil) - when 'thank' - render :thank and return {} - when 'sorry' - render :sorry and return {} - end referer_url = OrbitHelper.request.path if @params['item'].to_s.empty? get_layout_type @@ -156,7 +150,7 @@ class AsksController < ApplicationController end csrf_value = OrbitHelper.request.session[:_csrf_token] || SecureRandom.base64(32) token_tag = hidden_field_tag('authenticity_token',csrf_value) - switch_form = cal_switch_form(ask_settings,categories,token_tag,referer_url, params[:id]) + switch_form = cal_switch_form(ask_settings,categories,token_tag,referer_url, @params[:id]) tags = module_app.tags ask_question = AskQuestion.new(id: nil) email_regex = @default_ask_setting.get_email_regex(true)