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



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

def confirmation; end

#createObject

POST /response



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

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



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

def index; end

#showObject

GET /response/overview



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

def show; end