No, you need to override _update_form.html.erb partial for that controller:
<% cancel_link = true if cancel_link.nil? %>
<%= render :partial => "base_form", :locals => {:xhr => xhr ||= nil,
:form_action => form_action ||=
:update,
:submit_text => 'test',
:method => method ||= :patch,
:cancel_link => cancel_link,
:headline => headline ||=
@record.to_label.nil? ? active_scaffold_config.update.label :
as_(:update_model, :model => h(@record.to_label))} %>
Or override _base_form partial:
<%= render :super, :locals => {submit_text => ('test' if form_action ==
:update)} %>
El sábado, 4 de febrero de 2017 9:20:39 (CET) Gloufy escribió:
> Hi
> Does it possible in config of the scaffold to have a custom submit_text ?
> like this
> config.update.submit_text="test"
> Thank you
> Gloufy
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.