Skip to content

Commit

Permalink
Fix Wojtka bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
pithyless committed May 24, 2012
1 parent b82e1c0 commit a5c2014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/main.rb
Expand Up @@ -3,15 +3,15 @@
erb :start, :layout => :default
end

get '/start' do
post '/start' do
first_name = params[:first_name]
last_name = params[:last_name]

question_service = HireMe::Models::SessionService.new
session_id = question_service.start_session({:first_name => first_name, :last_name => last_name})

@session_id = session_id
@questions = question_service.get_questions(session_id)
@questions = question_service.get_all_questions(session_id)
@current_question = question_service.get_question(@questions.first.id)
erb :question, :layout => :default
end
Expand Down

0 comments on commit a5c2014

Please sign in to comment.