How do I have two links that does the same action, save, and redirects
to different pages when different links are clicked. I am now using <%=
link_to_function 'Previous', "$('form_id').submit()" -%>
When user click the 'Previous' link, he will be redirected to the
previous page. If the user click the 'Next' link, he will be redirected
to the next page.
Can someone please help me?