Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: bayendor
Make sure you have included the code for basic authorization in application_controller.rb
redirect_to login_url, alert: "Not authorized" if current_user.nil?
and then make sure to invoke it in all your controllers:
class ArticlesController < ApplicationController
before_filter :authorize, only: [:edit, :update] # could also use before_action in Rails 4