Class: Rsvp::ResponseController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Rsvp::ResponseController
- Defined in:
- app/controllers/rsvp/response_controller.rb
Instance Method Summary collapse
-
#confirmation ⇒ Object
GET /response/confirmation.
-
#create ⇒ Object
POST /response.
-
#index ⇒ Object
GET /response.
-
#show ⇒ Object
GET /response/overview.
Instance Method Details
#confirmation ⇒ Object
GET /response/confirmation
24 |
# File 'app/controllers/rsvp/response_controller.rb', line 24 def confirmation; end |
#create ⇒ Object
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 |
#index ⇒ Object
GET /response
7 |
# File 'app/controllers/rsvp/response_controller.rb', line 7 def index; end |
#show ⇒ Object
GET /response/overview
21 |
# File 'app/controllers/rsvp/response_controller.rb', line 21 def show; end |