there's a mapping between  AS authorization methods
(authorized_for_action?, method_authorized?, etc) and CanCan can? method.
But also, CanCan works at ActiveRecord level: CanCan is blocks the
klass.new method (and create, create!, build, etc.).
As a result, links are showed (AS auth is passing) but klass.new or
klass.create gets blocked. That's all i know for now. I'll dig deeper.

On Fri, Sep 7, 2012 at 5:27 AM, Mike Blyth <[email protected]> wrote:

> I tried using the class method self.authorized_for_create? and it didn't
> work, so presumably it's because the CanCan chain is doing the authorizing.
> I may just try using JS to fix it.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "ActiveScaffold : Ruby on Rails plugin" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/activescaffold/-/okMjqJCmHI8J.
>
> 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/activescaffold?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to