public
Description: Repository for improving Rails documentation
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/lifo/doc-rails.git
Search Repo:
Fixed wrong html in submit_tag form helper examples
sunny (author)
Tue Apr 22 10:05:03 -0700 2008
commit  9078b3f9bf2a5e0b41162d4b09e65b505e88cf6d
tree    f36411ea2fafd30362f450b6d955694938c08fba
parent  26b77bbbf3adfa05924a180d74a6f62907481cdc
...
341
342
343
344
345
 
 
 
346
347
348
...
341
342
343
 
 
344
345
346
347
348
349
0
@@ -341,8 +341,9 @@
0
       # submit_tag nil, :class => "form_submit"
0
       # # => <input class="form_submit" name="commit" type="submit" />
0
       #
0
- # submit_tag "Edit", :disable_with => "Editing...", :class => 'edit-button'
0
- # # => <input class="edit-button" disable_with="Editing..." name="commit" type="submit" value="Edit" />
0
+ # submit_tag "Edit", :disable_with => "Editing...", :class => "edit-button"
0
+ # # => <input class="edit-button" onclick="this.disabled=true;this.value='Editing...';this.form.submit();"
0
+ # # name="commit" type="submit" value="Edit" />
0
       def submit_tag(value = "Save changes", options = {})
0
         options.stringify_keys!
0
         

Comments

    No one has commented yet.