title: In Rails, can you set flash[:error] when calling link_to?
body: <p>For instance, let's say I have the following:</p>
  
  <pre><code>link_to 'Page', page_path(foobar)
  </code></pre>
  
  <p>Is there a way to set flash[:error] in the link_to call that will be displayed at <code>page_path</code>?</p>
  
  <p>I'm looking for something along the lines of:</p>
  
  <pre><code>link_to 'Page', page_path(foobar), :error =&gt; "Flash message"
  </code></pre>