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