title: What's best way to make rails flash entries persist until the next action?
body: <p>I've put some code like this</p>
  
  <pre><code>flash[:task_loader] = flash[:task_loader]
  flash[:task_loader_params] = flash[:task_loader_params]
  </code></pre>
  
  <p>in a function in my controller which all my actions can call.  This has the effect of keeping those two flash entries in the <code>FlashHash</code>.  (I presume this rather odd-looking code works because the '=' does more than just assign values.)</p>
  
  <p>My question is, is there a better way to do this?  Something like</p>
  
  <pre><code>flash[:task_loader].pin
  </code></pre>