Commit 5ab98b63
Changed files (2)
app
controllers
views
tutorials
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>