Can I patch my AS branch somehow to get the old behaviour back?

2010/9/22 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> On Miércoles, 22 de Septiembre de 2010 01:32:32 Andrey Voronkov escribió:
>> In my previous project all worked OK. Now I have two models
>> TeachingPlace ---< ChargeCard and TeachingPlacesController has a
>> nested link for nested charge cards. The aim is to give ability to an
>> user to rebind charge cards from one teaching place to another on
>> charge card update. So the config is:
>>
>> class DeptHead::ChargeCardsController < DeptHead::BaseController
>>   active_scaffold do |config|
>>     config.columns = [:teaching_place, :discipline, :jets,
>>
>> :lesson_type, :hours_quantity, :groups]
>>
>>     config.create.columns.exclude :groups
>>     config.update.columns = [:teaching_place, :discipline, :jets,
>>
>> :lesson_type, :hours_quantity]
>>
>>     config.list.columns.exclude :jets
>>     config.show.columns.exclude :jets
>>     config.columns[:discipline].form_ui = :record_select
>>     config.columns[:lesson_type].form_ui = :select
>>     config.columns[:teaching_place].form_ui = :record_select
>>     config.columns[:discipline].clear_link
>>     config.columns[:groups].clear_link
>>   end
>> end
>>
>> but :teaching_place column does not appear in update form and there is
>> no errors in logs.
>
> teaching_place is added to active_scaffold_constraints when you show nested
> charge_cards and it isn't displayed. You can try to override constraints in a
> before_filter, although you will have to fill in teaching_place for new charge
> cards too.
>
> --
> 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.
>
>

-- 
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