> With Hobo 0.8.4, 0.8.5 and edge, subsite controllers appear to be
> incomplete?  When I try to call current_user or render, I get
> "undefined local variable or method `current_user' for
> Admin::AdminSiteController:Class".
> [SNIP]
>
> +  before_filter do
> +    redirect_to login_url if current_user.guest? || ! 
> current_user.administrator
> +  end


Don't you have to do:

before_filter do |c|
   c.redirect_to c.login_url if c.current_user.guest? || ! 
c.current_user.administrator
end

Or

before_filter :require_admin
def require_admin
   redirect_to login_url if current_user.guest? || ! 
current_user.administrator
end

?

Tom


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to