Method: TalkingStick::ParticipantsController#create
- Defined in:
- app/controllers/talking_stick/participants_controller.rb
#create ⇒ Object
POST /participants
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/controllers/talking_stick/participants_controller.rb', line 27 def create params = participant_params.merge ip: request.remote_ip @participant = Participant.new(params) @participant.room = @room respond_to do |format| if @participant.save format.json { render json: @participant } else render :new end end end |