Method: LocationsController#index
- Defined in:
- app/controllers/locations_controller.rb
#index ⇒ Object
40 41 42 |
# File 'app/controllers/locations_controller.rb', line 40 def index @locations = Location.all.order_by([params[:by] || :name, params[:dir] || :asc]) end |