This commit is contained in:
邱博亞 2024-09-23 22:29:04 +08:00
parent c060993ca3
commit 1aa6f9c109
1 changed files with 1 additions and 7 deletions

View File

@ -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)