Commit 5ab98b63

mo k <mo@mokhan.ca>
2012-09-06 13:39:26
authenticate to add/edit/delete tutorials.
1 parent 72a942d
Changed files (2)
app
app/controllers/tutorials_controller.rb
@@ -1,2 +1,3 @@
 class TutorialsController < InheritedResources::Base
+  before_filter :authenticate_user!, :except => [:show, :index]
 end
app/views/tutorials/index.html.erb
@@ -26,7 +26,6 @@
       <% end %>
     </table>
 
-
     <%= link_to 'New Tutorial', new_tutorial_path %>
   </div>
 </div>