Created
March 23, 2014 16:21
-
-
Save pluralism/9725424 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegistrationsController < ApplicationController | |
before_filter :authenticate_athlete!, :only => [:new, :create] | |
def new | |
@race = Race.find(params[:race_id]) | |
@registration = @race.registrations.new | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment