app/controllers/costumes_controller.rb
# Studio
# Displays form for a dance studio to create a new costume
# GET /dance_studios/:dance_studio_id/costumes/new
Studio
Displays form for a dance studio to create a new costume
GET /dance_studios/:dance_studio_id/costumes/new
Studio Displays form for a dance studio to create a new costume GET / dance_studios / : dance_studio_id / costumes / new
def new
    @costume = Costume.new(dance_studio_id: params[:dance_studio_id])
    @assignment_info = @costume.build_shared_assignment_info
    @costume.build_assignments_with_dancer_id(current_user)
  end
def new @costume = Costume . new ( dance_studio_id : params [ :dance_studio_id ] ) @assignment_info = @costume . build_shared_assignment_info @costume . build_assignments_with_dancer_id ( current_user ) end
Studio
Displays form for a dance studio to create a new costume
GET /dance_studios/:dance_studio_id/costumes/new
Studio Displays form for a dance studio to create a new costume GET / dance_studios / : dance_studio_id / costumes / new
# instanstiates an empty instance of costume assignment - to collect the shared data for the assignments # instanstiates an instance of costume assignment for each current dancer w/ the dancer's id