This seems simple but I can’t figure it out. I receive post data in my rails app through a form and I want to use a redirect (instead of a render) but keep at least one of the pieces of post data alive through the redirect. How can I do this? Adding a hash on to redirect_to doesn’t seem to work.
Share
When i have to do this in PHP, i store the POST data in the session, then i remove them when i’m done using them (There’s even a pattern called “post / redirect / get” that tell to do this to avoid re-post of submitted data when reloading the page).
Couldn’t you do what you want this way or something similar with Rails?