Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make caption arg in submit-tag helper optional even when options args are supplied #1318
When I use
submit_tag :class => "btn"
<input type="submit" class="btn" value="Submit" />
But I get
<input type="submit" value-class="btn" />
I know that a caption arg is mandatory when options args are specified, but I think it's useful if we can omit a caption arg.
(Furthermore, IMHO, on above example condition, outputting as follows would be reasonable (
<input type="submit" class="btn" />