I have implemented a simple admin before filter like the one shown on railscasts.com at http://railscasts.com/episodes/20 & http://railscasts.com/episodes/21 but I find that the redirect_to in my authorize function causes the the Filter chain to halt and loop through 20 times with 302 errors trying to redirect to home_path before it stops and does not render anything with this error
Filter chain halted as [#<ActionController::Filters::ClassMethods::SymbolFilter:0x2aaaabe7b2f8 @filter=:my_authenticate>] rendered_or_redirected.
issues_controller.rb
before_filter :my_authenticate , :except => {:index, :show}