form override seems to do the trick:
def amount_form_column(record, input_name)
record.amount
end
On Jan 30, 6:39 am, greghauptmann <[email protected]> wrote:
> Hi,
>
> I've defined a virtual field (e.g. config.columns
> << :name_spelled_backwards) which is working fine, however in the
> "update" scenario I get an "undefined method".
>
> How can I avoid this? I want the value of the virtual attribute to
> show in the form, but effectively want it (a) non-editable, and (b)
> not be something that AS tries to update at the back end when the
> update requests goes through.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---