# Harvest error\_messages\_for to use on redirect?

**URL:** <https://www.ruby-forum.com/t/harvest-error-messages-for-to-use-on-redirect/143990>\
**Category:** Rails\
**Created:** [July 24, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/harvest-error-messages-for-to-use-on-redirect/143990 "2008-07-24T13:51:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [July 24, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/harvest-error-messages-for-to-use-on-redirect/143990/1 "2008-07-24T13:51:48Z")

</div>

Hi-

I’ve seen this posted a bunch of times but haven’t found an answer. I  
want to have multiple forms/pages map to one controller so I don’t  
have to duplicate my controller logic, then, render the sending  
pages. To do so, I was hoping to just render error\_messages\_for on  
the sending page. But I have learned you lose this on redirect. Is  
there a simple way to render error\_messages\_for to an array or  
something then pass that to the submitting form? Has anyone come up  
with a workaround for this?

Thanks,  
Dino
