On Jueves, 17 de Diciembre de 2009 09:17:28 Swartz escribió:
> On Dec 17, 12:45 am, Swartz <[email protected]> wrote:
> > On Dec 16, 2:57 am, "Sergio Cambra .:: entreCables S.L. ::."
> >
> > <[email protected]> wrote:
> > > Have you tried to set update_column option in membership column to
> > > member_pay column?
> >
> > This is what I have:
> > config.columns[:membership].options = {:update_column => :member_pay}
> >
> > Am I missing something?
>
> Forgot to add. This is what I have in MembersHelper
>
> def options_for_association_conditions(association)
>     if association.name == :member_pay
>       {'memberships.id' => @record.membership_id }
>     else
>       super
>     end
>   end
>
> This retrieves the correct record according to logs when a memberships
> drop-down box is selected. However, its value does not get inserted
> into the member_pay text input box.
>
> I have googled and have come up empty-handed for this type of
> customization.


Do you get a render_field request? What do you get as response for that 
request? You can see it with firebug. And please, post your controller, I don't 
know whether member_pay is an association, whether it uses a form_ui

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


Reply via email to