Conditions | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | class UserSessionsController < ApplicationController |
||
6 | def create |
||
7 | @participant_session = ParticipantSession.new(participant_session_params) |
||
8 | if @participant_session.save |
||
9 | flash[:notice] = "You're logged in. Welcome back." |
||
10 | redirect_to root_path |
||
11 | else |
||
12 | flash.now[:error] = "Sorry, couldn't find that participant. Try again, or sign up to register a new account." |
||
13 | render :action => :new |
||
14 | end |
||
15 | end |
||
16 | |||
31 |