if you just want to get rid of it, there's an easier and straightforward way:
conf.columns[:your_column].allow_add_existing = false On Thu, Jan 10, 2013 at 7:42 AM, Sergio Cambra <[email protected]>wrote: > It should work, add existing link is added with this option: > :security_method => :add_existing_authorized? > > Are you defining your method below active_scaffold block? > > On Miércoles, 9 de enero de 2013 08:20:57 Mihai escribió: > > Hi there, > > > > I need to get rid of the "Add Existing" link action. Before upgrading to > > Rails 3 supported active scaffold I was doing this by having > > > > def add_existing_authorized?(record = nil) > > false > > end > > > > in my controller. But after upgrading to rails 3 supported active > scaffold > > the security method add_existing_authorized? doen't work anymore. > > Any idea is welcome. > > > > thanks! > > -- > 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. > > -- 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.
