Workshop test.
This commit is contained in:
		
							parent
							
								
									cfcf41c766
								
							
						
					
					
						commit
						c960cb7458
					
				| @ -394,6 +394,15 @@ class ConferencesController < ApplicationController | ||||
| 		{error: false, next_step: params[:cancel] ? 'cancel' : next_step} | ||||
| 	end | ||||
| 	 | ||||
| 	def workshop_test | ||||
| 		set_conference | ||||
| 		@register_step = 'new_workshop' | ||||
| 		@register_template = 'register_new_workshop' | ||||
| 		session[:registration] = {:workshop => [Hash.new]} | ||||
| 		session[:registration][:workshop_index] = 0 | ||||
| 		render 'show' | ||||
| 	end | ||||
| 
 | ||||
| 	def register | ||||
| 		is_post = request.post? || session[:registration_step] | ||||
| 		set_conference | ||||
|  | ||||
| @ -14,6 +14,7 @@ BikeBike::Application.routes.draw do | ||||
|             #resources :workshops, :param => 'slug' | ||||
| 			#get :register, :param => 'step' | ||||
|             #post 'register/next' => 'conferences#register_submit' | ||||
|             get 'register/workshop-test/' => 'conferences#workshop_test' | ||||
|             match 'register(/:step)' => 'conferences#register', via: [:get, :post] | ||||
|             get 'register/confirm/:confirmation_token' => 'conferences#register_confirm' | ||||
|             match 'register/pay-registration/:confirmation_token' => 'conferences#register_pay_registration', via: [:get, :post] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user