HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/actionview-6.1.4.1/ri/ActionView/Helpers/FormBuilder/submit-i.ri
U:RDoc::AnyMethod[iI"submit:ETI",ActionView::Helpers::FormBuilder#submit;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"QAdd the submit button for the given form. When no value is given, it checks ;TI"Gif the object is a new resource or not to create the proper label:;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I""<%= form_for @post do |f| %>
;TI"  <%= f.submit %>
;TI"<% end %>
;T:@format0o;
;	[I"[In the example above, if <tt>@post</tt> is a new record, it will use "Create Post" as ;TI";submit button label; otherwise, it uses "Update Post".;T@o;
;	[I"XThose labels can be customized using I18n under the +helpers.submit+ key and using ;TI"5<tt>%{model}</tt> for translation interpolation:;T@o;;	[
I"	en:
;TI"  helpers:
;TI"    submit:
;TI"'      create: "Create a %{model}"
;TI"1      update: "Confirm changes to %{model}"
;T;
0o;
;	[I"=It also searches for a key specific to the given object:;T@o;;	[
I"	en:
;TI"  helpers:
;TI"    submit:
;TI"      post:
;TI"#        create: "Add %{model}";T;
0:
@fileI"+lib/action_view/helpers/form_helper.rb;T:0@omit_headings_from_table_of_contents_below000[I" (value = nil, options = {});T@.FI"FormBuilder;TcRDoc::NormalClass00