Skip to content

Commit

Permalink
Changed the submit documentation to explicitly state that the submit …
Browse files Browse the repository at this point in the history
…button is not included as a form parameter.
  • Loading branch information
gavingmiller committed May 22, 2012
1 parent e530a65 commit fc745e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mechanize/form.rb
Expand Up @@ -173,7 +173,8 @@ def method_missing(meth, *args)
super
end

# Submit this form with the button passed in
# Submit the form. Does not include the +button+ as a form parameter.
# Use +click_button+ or provide button as a parameter.
def submit button=nil, headers = {}
@mech.submit(self, button, headers)
end
Expand Down

0 comments on commit fc745e1

Please sign in to comment.