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?