On Lunes, 3 de Mayo de 2010 19:01:09 Iñaki Baz Castillo escribió:
> 2010/5/3 Iñaki Baz Castillo <[email protected]>:
> > Hi, my controller ClientsController manages the Client model. Each
> > Client instance has_many CliOut instances.
> >
> > In the active scaffold "clients_controller.rb" I set:
> >
> > config.columns[:cli_outs].label = "Out CLI"
> >
> > But when I create/update a Client, the subform shows a buttom:
> >
> > [ Create Another Cliout ]
> >
> > It seems that it takes the model class name and capilatizes it, but it
> > looks ugly. Is it possible to set the name to appear in the subform
> > "commit" buttons?
>
> I've found that the name comes from:
>
> lib/active_scaffold/locale/en.rb:
> :create_another => 'Create Another {{model}}'
>
> Could be possible to redefine "model" variable?
You only have to translate the model in your i18n file:
es:
activerecord:
models:
cli_out: "Out CLI"
--
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.