Class: Guts::TrackersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/guts/trackers_controller.rb

Overview

Trackers controller

Instance Method Summary collapse

Methods included from SessionsHelper

#current_user, #log_in, #log_out, #logged_in?

Instance Method Details

#indexObject

Displays a list of tracks/logs



7
8
9
# File 'app/controllers/guts/trackers_controller.rb', line 7

def index
  @tracks = Tracker.order(created_at: :desc)
end