master
<% if button? %> <%= button_to text, path, html_options %> <% else %> <%= link_to text, path, html_options %> <% end %>