I did it... I always use firebug to check if working... but.. isn't!
in the controller:
class PessoaController < ApplicationController
active_scaffold :pessoa do |conf|
conf.columns = [:name, :xyz, :xwz]
conf.list.columns = [:name, :xyz, :xwz]
conf.list.label = "Pessoa"
conf.show.columns = [:name, :xyz, :xwz]
conf.update.columns = [:name, :xyz, :xwz]
conf.create.columns = [:name, :xyz, :xwz]
conf.label = "Pessoas"
conf.columns[:xyz].label = "XXYZ"
conf.columns[: xwz].label = "XXWZ"
conf.columns[:name].css_class = "text-input-big" # <===
end
end
in the css ... \vendor\plugins\active_scaffold\frontends\default
\stylesheets\stylesheet.css
.active-scaffold input.text-input,
.active-scaffold select {
font: bold 13px arial;
letter-spacing: -1px;
border: solid 1px #a08a31;
}
.active-scaffold input.text-input-big{ <=====
font: bold 13px arial;
letter-spacing: -1px;
border: solid 4px #a08a31;
width: 500px;
}
On Nov 24, 6:02 am, "Sergio Cambra .:: entreCables - Symbol Servicios
Informáticos S.L. ::." <[EMAIL PROTECTED]> wrote:
> El Sunday 23 November 2008 23:34:46 Eduardo Carvalho escribió:
>
>
>
> > I'm trying to work with the css_class simply to change the size of the
> > fields of description to go with 500px.
>
> > - in the controler:
> > conf.columns[:name].css_class = "text-input-big"
>
> > - in the css:
> > .active-scaffold input.text-input-big{
> > font: bold 13px arial;
> > letter-spacing: -1px;
> > border: solid 4px #a08a31;
> > width: 500px;
> > }
>
> > What I did wrong?
>
> Where did you put it?
> You can check it with firebug to see what css statement overrides your css.
>
> --
> Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
> Nicolás Guillén 6, locales 2 y 3. 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
-~----------~----~----~----~------~----~------~--~---