Probably varchar2 is not recognized/translated as a valid rails type and 
so activescaffold is defaulting to :select. Try:

config.columns[:standard_nm].form_ui = :string

If that doesn't work you can override in the helper. e.g

module YourModelHelper
  def standard_nm_form_column(record, input_name)
    text_field :record, :standard_nm, {:size => 20, :name => input_name}
  end
end

Regards,
Kerry

mikev wrote:
> I have a field that is defined as varchar2 with size 20 in an Oracle
> legacy db and it is being automatically displayed as a select list
> rather than a text box.  Any explanation of why this would happen and
> how I can force it to be a text box?
>
> I tried the following but it had no effect:
>
> config.columns[:standard_nm].list_ui = :text
>
> >
>
>   

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

  • list_ui mikev
    • Re: list_ui Kerry Foley
    • Re: list_ui Sergio Cambra .:: entreCables S.L. ::.

Reply via email to