small medium large xlarge

Generic-user-small
14 Sep 2010, 12:42
david cates (3 posts)

when i add

protected def authorize unless User.find_by_id(session[:user_id]) flash[:notice] = “Please log in” redirect_to :controller => ‘admin’ , :action => ‘login’ end end end

on page 172 my app then reports to many redirects…….,etc.

it worked perfectly until the admin redirect. what is wrong?

You must be logged in to comment