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/button-i.ri
U:RDoc::AnyMethod[iI"button:ETI",ActionView::Helpers::FormBuilder#button;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.button %>
;TI"<% end %>
;T:@format0o;
;	[I"[In the example above, if <tt>@post</tt> is a new record, it will use "Create Post" as ;TI"4button label; otherwise, it uses "Update Post".;T@o;
;	[I"NThose labels can be customized using I18n under the +helpers.submit+ key ;TI"[(the same as submit helper) and using <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;
0S:RDoc::Markup::Heading:
leveli	:	textI"
Examples;To;;	[I"button("Create post")
;TI"C# => <button name='button' type='submit'>Create post</button>
;TI"
;TI"button do
;TI"'  content_tag(:strong, 'Ask me!')
;TI"	end
;TI"/# => <button name='button' type='submit'>
;TI"%#      <strong>Ask me!</strong>
;TI"#    </button>
;TI"
;TI"button do |text|
;TI""  content_tag(:strong, text)
;TI"	end
;TI"/# => <button name='button' type='submit'>
;TI")#      <strong>Create post</strong>
;TI"#    </button>;T;
0:
@fileI"+lib/action_view/helpers/form_helper.rb;T:0@omit_headings_from_table_of_contents_below00I"
value;T[I"((value = nil, options = {}, &block);T@BFI"FormBuilder;TcRDoc::NormalClass00