On Viernes, 18 de Diciembre de 2009 13:17:16 Swartz escribió:
> > I have tried what you suggested before, and what your suggested now...
> > but after_render_field method NEVER gets called.
> > I have a debugger breakpoint in it and it never gets tripped. No
> > matter what approach I've tried.
>
> Arghhhh... I got after_render_field method to work now.
> Apparently one of the other developers had pushed an older AS version
> to the project git repo after I updated it to the latest master.
> I was under impression it had the latest one.... can you believe it?
It's nice is working now. Most times the fix is the easiest one.
>
> $%##%^$#%$#%&^%&&!!!!
>
> Everything is working now with
>
> config.columns[:membership].options = {:update_column => :member_pay}
>
> and overridden MembersController method
>
> def after_render_field(record, column)
> record.member_pay = record.membership.cost
> end
>
>
> The biggest thank you ever, Sergio!
--
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.