Method: CheckinsController#index
- Defined in:
- app/controllers/checkins_controller.rb
#index ⇒ Object
GET /checkins GET /checkins.json
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/checkins_controller.rb', line 8 def index if @basket @checkins = @basket.checkins.page(params[:page]) else @checkins = Checkin.page(params[:page]) end respond_to do |format| format.html # index.html.erb format.json { render json: @checkins } format.js end end |