Excellent news!

Thanks a lot, Sergio

On Jul 29, 8:35 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Martes, 27 de Julio de 2010 13:42:13 Pedro G. escribió:
>
>
>
>
>
> > Thanks Sergio, that's a good idea.
>
> > The only problem is that I might require different sizes for different
> > fields in several controllers, so I would need to define a class for
> > each of these fields, I guess...
>
> > I've finally found the code for the helper method that I presume that
> > ActiveScaffold is using. I believe it is record_select_field in the
> > file vendor/plugins/recordselect/app/helpers/record_select_helper.rb
>
> > I've figured out that I can make AS take the :size option into account
> > by changing line 187 (from your latest codebase) from
> >     html = text_field_tag(name, nil, :autocomplete => 'off', :id =>
> > options[:id], :class => options[:class],  :onfocus =>
> > "this.focused=true", :onblur => "this.focused=false")
> > To
> >     html = text_field_tag(name, nil, :autocomplete => 'off', :id =>
> > options[:id], :class => options[:class], :size =>
> > options[:size], :onfocus => "this.focused=true", :onblur =>
> > "this.focused=false")
>
> > Would it make sense to include this modification in the repository for
> > future versions?
> > Thanks
>
> I have added it to my fork.
>
>
>
>
>
> > Pedro
>
> > On Jul 27, 10:27 am, "Sergio Cambra .:: entreCables S.L. ::."
>
> > <[email protected]> wrote:
> > > On Lunes, 26 de Julio de 2010 17:31:24 Pedro G. escribió:
> > > > Hi
>
> > > > Is there any way to specify the size of the text field for
> > > > record_select in the controller? config.columns[:column_name].options
> > > > = {:size => x} doesn't seem to be picked up by record_select.
>
> > > > Best regards
> > > > P.
>
> > > No, record select has no support for it, but you can set class and style
> > > it with CSS
>
> > > --
> > > Sergio Cambra .:: entreCables S.L. ::.
> > > Mariana Pineda 23, 50.018 Zaragoza
> > > T) 902 021 404 F) 976 52 98 07 E) [email protected]
>
> --
> Sergio Cambra .:: entreCables S.L. ::.
> Mariana Pineda 23, 50.018 Zaragoza
> T) 902 021 404 F) 976 52 98 07 E) [email protected]

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