mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
revise some doc changes
This commit is contained in:
parent
a7d3851bdb
commit
1fc6036b4b
1 changed files with 4 additions and 9 deletions
|
@ -393,21 +393,17 @@ module ActionView
|
|||
# submit_tag "Save edits", :disabled => true
|
||||
# # => <input disabled="disabled" name="commit" type="submit" value="Save edits" />
|
||||
#
|
||||
#
|
||||
# submit_tag "Complete sale", :disable_with => "Please wait..."
|
||||
# # => <input name="commit" data-disable-with="Please wait..."
|
||||
# # type="submit" value="Complete sale" />
|
||||
# # => <input name="commit" data-disable-with="Please wait..." type="submit" value="Complete sale" />
|
||||
#
|
||||
# submit_tag nil, :class => "form_submit"
|
||||
# # => <input class="form_submit" name="commit" type="submit" />
|
||||
#
|
||||
# submit_tag "Edit", :disable_with => "Editing...", :class => "edit_button"
|
||||
# # => <input class="edit_button" data-disable_with="Editing..."
|
||||
# # name="commit" type="submit" value="Edit" />
|
||||
# # => <input class="edit_button" data-disable_with="Editing..." name="commit" type="submit" value="Edit" />
|
||||
#
|
||||
# submit_tag "Save", :confirm => "Are you sure?"
|
||||
# # => <input name='commit' type='submit' value='Save'
|
||||
# # data-confirm="Are you sure?" />
|
||||
# # => <input name='commit' type='submit' value='Save' data-confirm="Are you sure?" />
|
||||
#
|
||||
def submit_tag(value = "Save changes", options = {})
|
||||
options = options.stringify_keys
|
||||
|
@ -455,8 +451,7 @@ module ActionView
|
|||
# # </button>
|
||||
#
|
||||
# button_tag "Checkout", :disable_with => "Please wait..."
|
||||
# # => <button data-disable-with="Please wait..." name="button"
|
||||
# # type="submit">Checkout</button>
|
||||
# # => <button data-disable-with="Please wait..." name="button" type="submit">Checkout</button>
|
||||
#
|
||||
def button_tag(content_or_options = nil, options = nil, &block)
|
||||
options = content_or_options if block_given? && content_or_options.is_a?(Hash)
|
||||
|
|
Loading…
Reference in a new issue