title: Removing :notice and <div> in Rails 3.1 app on page refresh
body: <p>This might be an easy one for you guys, but I'm not sure the best way to achieve it.</p>
  
  <p>Is there some type of <code>.erb</code> I can write that asks "If <code>:notice</code> is present, then render..."?</p>
  
  <p><em>Here's more about the issue:</em></p>
  
  <p>My controller specifies a <code>:notice</code> for both the <code>create</code> and <code>update</code> actions (pretty standard).  When I load the pages, the notices do as I'd expect and show up.  When I reload the page however, (not sure why someone would do this, but I did), the <code>:notice</code> goes away (great, that's what I want), but the containing <code>&lt;div&gt;</code> remains.</p>
  
  <p>How do I go about ensuring that the encapsulating <code>&lt;div&gt;</code> is removed along with the <code>:notice</code>?  I'm not sure what conditionals to specify in my view or maybe controller.  The view looks something like this (btw, I'm using Twitter Bootstrap JS alerts).</p>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;div class="alert-message success fade in" data-alert="alert"&gt;
    &lt;a class="close" href"#"&gt;×&lt;/a&gt;
    &lt;p&gt;&lt;%= notice %&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My <strong>controller</strong> is a single scaffolded model/resource with basic structure</p>