Html page redirection in Ruby on Rails -
i have 1 html page , in page have 3 buttons. each button should redirect seperate html page. can u please below code , guide me wrong.
<td class="span3 offset6 alignment"> <%= submit_tag 'add cart', products_path %> </td> <td class="span3 offset9 alignment"> <%= submit_tag 'check out', orders_path %> </td> <td class="span3 offset12 alignment"> <%= submit_tag 'view cart', viewcart_path %> </td>
submit_tag
used inside form
.
is case looks want use <%= link_to 'view cart', viewcart_path %>
Comments
Post a Comment