Class: Rsvp::ResponseController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rsvp/response_controller.rb

Instance Method Summary collapse

Instance Method Details

#confirmationObject

GET /response/confirmation



23
# File 'app/controllers/rsvp/response_controller.rb', line 23

def confirmation; end

#createObject

POST /response



9
10
11
12
13
14
15
16
17
# File 'app/controllers/rsvp/response_controller.rb', line 9

def create
  @invitation = Invitation.find(session[:invitation_id])
  @response = @invitation.responses.build(params[:response])
  if @response.save
    redirect_to confirmation_response_index_path
  else
    render :action => :index
  end
end

#indexObject

GET /response



6
# File 'app/controllers/rsvp/response_controller.rb', line 6

def index; end

#showObject

GET /response/overview



20
# File 'app/controllers/rsvp/response_controller.rb', line 20

def show; end