From 1aa6f9c109474150877a82153bd479b6f9b1aeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 23 Sep 2024 22:29:04 +0800 Subject: [PATCH] Fix bug. --- app/controllers/asks_controller.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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)