Issue #42 resolved

button_to create uppercase verbs that are invalids in xhtml

transducer
created an issue

One example in the documentation is :

{{{

!python

button_to("Edit", url(action='edit', id=3)) <form method="POST" action="/feeds/edit/3" class="button-to"> <div><input value="Edit" type="submit" /></div> </form> }}}

Only lowercase verbs are valid XHTML and 'method="POST"' does not validate.

I attach a patch that still defaults to uppercase verbs, but uses lowercase verbs when the method parameter is in lowercase.

{{{

!python

button_to("Edit", url(action='edit', id=3), method="post") <form method="post" action="/feeds/edit/3" class="button-to"> <div><input value="Edit" type="submit" /></div> </form> }}}