I'm trying to get rid of the "Create new" link conditionally, when users 
are not authorized to create. I'm using CanCan. The links within rows are 
suppressed properly (or greyed out), but the top-of-page Create link is 
still there. I have tried

   - def authorized_for_create? # in model
     false
   end
   - def authorized_for_new? # in model, out of desperation
     false
   end
   - def create_authorized? # in controller
     false
   end

What is the right way?

-- 
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/-/JSVfiJrg7cgJ.
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