your problem is in your helper.
the amount form column is supposed to return the actual input as well.
module BusinessItemHelper
 def amount_form_column(record, input_name)
   # not this, record.amount
    input record, input_name, :value => record.amount
 end
end

but i don't know that you need to over ride this in the helper, try removing
this method and see what happens, if it doesn't work try what is above

On Thu, Jan 29, 2009 at 9:35 PM, greghauptmann <[email protected]>wrote:

>
> Hi,
>
> I have an issue whereby a form override for "amount" in one model, is
> impacting the view of another model that has "amount" as an
> attribute?   That is in the 2nd model it is showing up as read only
> where it should not.
>
> Know issue?  Anyway to work around this?
>
> ----------------------------------------
> module BusinessItemHelper
>  def amount_form_column(record, input_name)
>    record.amount
>  end
> end
> -----------------------------------
> module AutomatchBusinessItemHelper
>  # i.e. there is no "amount_form_column" specified here
>  def automatch_bi_allocations_column(record)
>    record.to_s_deep
>  end
> end
> -----------------------------------------
> ==> In the AutomatchBusinessItem edit form, the amount field is just a
> label, and not an edit box.  If I take out the amount_form_column
> method in BusinessItemHelper it works.
>
>
>
>
>
>
> >
>

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