Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7105

Show
Ignore:
Timestamp:
06/23/07 17:37:44 (3 years ago)
Author:
david
Message:

Docfix (closes #8353)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/helpers/form_tag_helper.rb

    r7093 r7105  
    129129      end 
    130130 
    131       # Creates a submit button with the text <tt>value</tt> as the caption. If options contains a pair with the key of "disable_with"
     131      # Creates a submit button with the text <tt>value</tt> as the caption. If options contains a pair with the key of <tt>:disable_with</tt>
    132132      # then the value will be used to rename a disabled version of the submit button. 
     133      # 
     134      # Options: 
     135      # * <tt>:disable_with</tt> - When specified the button will be disabled when clicked and the <tt>value</tt> will be replaced with the 
     136      # the string provided. 
     137      #     # Outputs <input name="commit" onclick="this.disabled=true;this.value='Saving...';this.form.submit();" type="submit" value="Send" /> 
     138      #     <%= submit_tag 'Send', :disable_with => 'Saving...' %> 
    133139      def submit_tag(value = "Save changes", options = {}) 
    134140        options.stringify_keys!