I can change the text field size when I modify the code in lib/helpers/
form_column_helpers.rb, but the helper can't get the size value that I
had set in controller.

When I print the "options" in helper:

autocompleteoffclassename-inputnamerecord[ename]idrecord_ename_1

I can't see the size value that I had set in controller.

Thanks

On 3月4日, 下午2時04分, David Cato <[email protected]> wrote:
> Roy wrote ...
>
> > It is a real column, and I am not override it in helper.
>
> > Hi Sri Sri,
>
> > I am not find the set width in .css file. I just find some font size
> > and format setting.
>
> > Ruby 1.8.6
> > Rails 2.0.2
> > Active Scaffold 1.1.1
>
> Looking at the diffs between 1.1.1 and later versions it looks like
> you'll likely need to modify lib/helpers/form_column_helpers.rb to get
> the expected behavior.
>
> Look at #active_scaffold_input_text_options and delete the line that
> hard-sets the size to 20:
>
>   options[:size] = 20
>
> That line is not even in later versions of form_column_helpers and it
> does not look to me like it needs to be in the 1.1.1 version either, but
> I could be wrong.  You could always change '=' to '||=' if you wanted to
> be really safe.
--~--~---------~--~----~------------~-------~--~----~
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