title: Ruby on Rails: How to keep validation errors upon redirect_to, without storing too much in the cookie
body: <p>I'm trying to use a redirect_to in my controller while still keeping the validation error flash messages. In another post on this site, the suggested answer was to use:</p>
  
  <p>flash[:error] = @object.errors
  redirect_to object_path</p>
  
  <p>Unfortunately, if there are many errors (10 in my case), I get a ActionDispatch::Cookies::CookieOverflow
  error, since apparently the @object.errors object is too large to store in the cookie.</p>
  
  <p>I'd really like to use redirect instead of render for other reason I have not mentioned due to their intricacy.</p>
  
  <p>Any suggestions?</p>