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?
--
Iñaki Baz Castillo
<[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.