clean page on OrbitHelper
This commit is contained in:
parent
06bc2b1531
commit
ddb8da9eca
|
@ -433,6 +433,7 @@ class SeminarsController < ApplicationController
|
|||
end
|
||||
|
||||
def create
|
||||
OrbitHelper.set_page(nil)
|
||||
referer_url = request.referer
|
||||
if referer_url
|
||||
params[:url] = URI.parse(referer_url).path.sub(/\/[^\/]*$/, '').sub(/^\/#{I18n.locale}/, '')
|
||||
|
@ -541,6 +542,11 @@ class SeminarsController < ApplicationController
|
|||
end
|
||||
|
||||
def update_signup_form
|
||||
OrbitHelper.set_page(nil)
|
||||
referer_url = request.referer
|
||||
if referer_url
|
||||
params[:url] = URI.parse(referer_url).path.sub(/\/[^\/]*$/, '').sub(/^\/#{I18n.locale}/, '')
|
||||
end
|
||||
params = OrbitHelper.params
|
||||
tmp_seminar_signup_params = seminar_signup_params
|
||||
@seminar_signup = SeminarSignup.find(params[:signup_id])
|
||||
|
|
Loading…
Reference in New Issue