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()" -%>
Example:
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.
Hi,
do you have the rhtml page for previous_page and next_page
regards
Abirami
Hi,
Yes I do have previous_page.rhtml and next_page.rhtml. The MISSING
TEMPLATE error says that my save action's template is missing not the
page that I want to redirect to is missing. I tried to use put to print
out the id and the result it prints out is nil. How do I let my
controller get the id from the link_to_function ?