It is only open to users with the :admin role, which works fine. What
I can't seem to figure out is why this line won't work for me:
rescue_from Acl9::AccessDenied, :with => :access_denied
I keep getting Acl9::AccessDenied exceptions in my cucumber tests (and
when I visit the page manually).
Any idea why? It doesn't seem to call
ApplicationController#access_denied at all.
I was more or less following the tutorial. The only change I made was
to remove the quotes around Acl9::AccessDenied when the copied and
pasted version didn't work either.
Thanks for your help,
Josiah
ActionController::Base.allow_rescue = true
On Mar 11, 8:25 pm, Josiah <bluep...@gmail.com> wrote:
> I have an admin dashboard I am trying to secure with acl9.
>
> It is only open to users with the :admin role, which works fine. What
> I can't seem to figure out is why this line won't work for me:
>
> rescue_from Acl9::AccessDenied, :with => :access_denied
>
> I keep getting Acl9::AccessDenied exceptions in mycucumbertests (and