Changeset 7105
- Timestamp:
- 06/23/07 17:37:44 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_view/helpers/form_tag_helper.rb
r7093 r7105 129 129 end 130 130 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>, 132 132 # 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...' %> 133 139 def submit_tag(value = "Save changes", options = {}) 134 140 options.stringify_keys!