mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk - add devise for session management; user must log in to update bikes & volunteers
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class BikesController < ApplicationController
|
||||
before_action :set_bike, only: [:show, :edit, :update, :destroy]
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@bikes = Bike.all
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class VolunteersController < ApplicationController
|
||||
before_action :set_volunteer, only: [:show, :edit, :update, :destroy]
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@volunteers = Volunteer.all
|
||||
|
||||
Reference in New Issue
Block a user