lk - add devise for session management; user must log in to update bikes & volunteers

This commit is contained in:
Loos
2014-08-13 22:24:05 -04:00
parent 385f4cc579
commit 929168dde4
36 changed files with 619 additions and 55 deletions
+1
View File
@@ -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
View File
@@ -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