dropped first()

This commit is contained in:
Chrisbr 2014-04-27 17:38:30 +02:00
parent ab09931a41
commit ec0543ef3b

View file

@ -3,7 +3,7 @@ class ConferenceRegistrationController < ApplicationController
def register
# TODO Figure out how to change the route's id from :id to :conference_id
@conference = Conference.find_by(short_title: params[:id]).first
@conference = Conference.find_by(short_title: params[:id])
@workshops = @conference.events.where("require_registration = ? AND state LIKE ?", true, 'confirmed')
@person = current_user.person
if @person.first_name.blank? || @person.last_name.blank?