# REST and confirmation page routing

**URL:** <https://www.ruby-forum.com/t/rest-and-confirmation-page-routing/173469>\
**Category:** Rails\
**Created:** [August 10, 2009, 5:23am UTC](https://www.ruby-forum.com/t/rest-and-confirmation-page-routing/173469 "2009-08-10T05:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunt\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b9e5f3/32.png) [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Post date:** [August 10, 2009, 5:23am UTC](https://www.ruby-forum.com/t/rest-and-confirmation-page-routing/173469/1 "2009-08-10T05:23:04Z")

</div>

Hi

I’m new to Rails. I need to make a simple CRUD website.  
I need a dedicate confirmation/preview page for each “create”,  
“update” and “delete” action.

For the “delete”, I cannot use a JavaScript pop up function.

In each preview/confirmation page, a user should be able  
to press a browser’s back button and see the form with what’s they  
entered.  
The preview page has two buttons “Go back to edit” and “Confirm”.  
I also need to use POST for “Go back to edit”. In other words, I  
cannot use session storage.

I set in my routes.rb  
map.resources :posts

But this is of course not enough.

What could be a good approach to this situation?  
I have no idea how to make use of REST here. What could be in routes.rb?  
In the preview page, I think I need to have hidden form where only the  
button “Go back to edit” is visible to POST and go back  
to the previous page.

Is there any open source project that would be a good example for this  
solution?

Jon
