I am trying to create buttons ala Wufoo (Rediscovering the button element)
I would like to write the following code like the following:
<%form_tag search_path, :method => :get, :class => 'search' do %>
<%=text_field_tag :search, params[:search] -%>
<%=button_tag 'search', :name => nil-%>
<%end%>
To generate the following HTML (instead of the input[type="submit"] tag)
<button type="submit" class="positive">
<img src="/images/icons/tick.png" alt=""/>
Save
</button>
Does a method exist already? Or should I roll my own helper?