Hmmm, where does "Style" come from on line 3 of what you are showing here? I get an unintitialized constant with that. Thanks! -Janna B
On Jun 11, 2:08 pm, David Cato <[email protected]> wrote: > JannaB wrote ... > > > Is there means whereby I can make a field, which is "text" appear on > > the form as if the field were (in MySQL) "varchar?" In other words, > > the field defaults to text area, but I want to make it look like a > > textbox. -JannaB > > When I needed the same functionality I had to override the form column > in the helper. > > # app/helpers/styles_helper.rb > > def description_form_column(record, input_name) > text_field :record, :description, > form_element_input_options(input_name, Style, > # Adjust options as necessary > { :class => 'text-input', :size => 60 }) > end --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
