2010/7/19 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
>> I understand it occurs because active_scaffold_config is nil for
>> ApiController class (as it's not an AS controller).
>
> Yeah, I forgot that, you should change active_scaffold_config.list.columns
> with
> an array, and maybe remove some code about permissions tests.
>
>> I've also added api class to AS:
>>
>> map.resources :api, :active_scaffold => true,
>>
>> :collection => {:block => :get},
>> :member => {:block => :get}
>>
>> Should I also configure AS for this ApiController class? any other way?
>
> If that controller will always display clients in list, you can configure AS
> in
> it, excluding all actions except list. It's the easiest way. I think you won't
> need to set :active_scaffold => true in your routes because you won't use
> specific AS actions.
Nice to know, thanks a lot.
--
Iñaki Baz Castillo
<[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.