Class: AttendeesController
- Inherits:
-
EventCalendar::ApplicationController
- Object
- ActionController::Base
- ApplicationController
- EventCalendar::ApplicationController
- AttendeesController
- Includes:
- ActionView::Helpers::TextHelper
- Defined in:
- app/controllers/attendees_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #index ⇒ Object
-
#new ⇒ Object
load_event in before_filter.
Instance Method Details
#create ⇒ Object
47 48 49 50 51 52 |
# File 'app/controllers/attendees_controller.rb', line 47 def create attendees = Participator.create!(params[:attendee]) redirect_to(events_path, { :notice => "Created #{pluralize(attendees.count, 'Attendee')}!" }) end |
#index ⇒ Object
39 40 41 |
# File 'app/controllers/attendees_controller.rb', line 39 def index # load_event in before_filter end |