Sha256: 5bb79fda5326436ff547bbbd1bd62d682e2d0e033efd6418ee9f618a7aa0e3a1

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

class CalendarEventsController < ApplicationController
  respond_to :html, :json
  layout SpudEvents.config.calendar_layout

  def index
    @events = SpudCalendarEvent.ordered.paginate(per_page: 10, page: params[:page])
    respond_with @events
  end

  def show
    @event = SpudCalendarEvent.find(params[:id])
    respond_with @event
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tb_events-1.3.1 app/controllers/calendar_events_controller.rb
tb_events-1.3.0 app/controllers/calendar_events_controller.rb