Commit 0915e74

mo khan <mo@mokhan.ca>
2013-06-13 13:08:26
add authentication to cakes controller
1 parent 571797a
Changed files (1)
app
app/controllers/cakes_controller.rb
@@ -1,4 +1,6 @@
 class CakesController < ApplicationController
+  before_filter :authenticate_user!, except: [:index, :show]
+
   def index
     @cakes = Cake.all
   end