On Jueves, 25 de Junio de 2009 10:58:00 BaSS escribió: > It works like this: > > config.columns.exclude :roles, :users, :accepted_roles > > So i don't understand. accepted_roles is not a column (is not present > in any table) it's a acl9 method. So why AS try to render it as a > column?
accepted_roles is an association, like roles and users, so AS include it in columns. AS include all associations as columns. > > On 25 jun, 10:15, BaSS <[email protected]> wrote: > > I tryed the Kerry solution and: "config.ignore_columns.add" in > > application controller, so i ever have the same error: > > > > ActionView::TemplateError (Could not find ::RolesController > > or ::RoleController > > > > models/role.rb only have: > > acts_as_authorization_role > > > > On 25 jun, 09:45, [email protected] wrote: > > > If the interfaces controller is also related to roles or users you will > > > have to exclude them in that controller as well Sent from my Verizon > > > Wireless BlackBerry > > > > > > -----Original Message----- > > > From: Kerry <[email protected]> > > > > > > Date: Thu, 25 Jun 2009 00:36:40 > > > To: ActiveScaffold : Ruby on Rails > > > plugin<[email protected]> Subject: Re: Compatibility with > > > ACL9 authorization system? > > > > > >http://wiki.github.com/activescaffold/active_scaffold/api-core > > > > > > class DevicesController < ApplicationController > > > > > > active_scaffold :device do |config| > > > config.columns.exclude :roles, :users > > > end > > > > > > end > > > > > > Regards, > > > Kerry > > > > > > On Jun 25, 12:21 am, José Alberto <[email protected]> wrote: > > > > > Exclude the column(s) that relate your model to roles and users and > > > > > then it should work. You can delete the roles and users > > > > > controllers as well > > > > > > > > i don't understand too well what i must exclude. I have a "devices" > > > > table with a nested "interfaces" table. In other 2 tables i have > > > > Users and Roles. So will be somethign like: > > > > list.columns.exclude :devices.role ? > > -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
