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
23 |
# File 'app/controllers/rsvp/response_controller.rb', line 23 def confirmation; end |
#create ⇒ Object
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 |
#index ⇒ Object
GET /response
6 |
# File 'app/controllers/rsvp/response_controller.rb', line 6 def index; end |
#show ⇒ Object
GET /response/overview
20 |
# File 'app/controllers/rsvp/response_controller.rb', line 20 def show; end |