Skip to content

Instantly share code, notes, and snippets.

@pluralism
Created March 23, 2014 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pluralism/9725424 to your computer and use it in GitHub Desktop.
Save pluralism/9725424 to your computer and use it in GitHub Desktop.
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