Sha256: 0024c0f09b54e18a941284aa9fc54323f0142471bfe7928dc2c6e99038ea75c8

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 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

3 entries across 3 versions & 1 rubygems

Version Path
tb_events-1.1.2 app/controllers/calendar_events_controller.rb
tb_events-1.2.0.beta1 app/controllers/calendar_events_controller.rb
tb_events-1.1.1 app/controllers/calendar_events_controller.rb