title: flash[:notice] not working in Rails
body: <p>I have the following snippet of code in my controller</p>
  
  <pre><code>  def create
      @message = Message.new(params[:message])
      @message.message = h(@message.message)
      if @message.save
         flash[:message] = "Message Sent. Thank You for Contacting Me"
      else
         flash[:message] = "OOps Something went wrong"
      end
      redirect_to :action =&gt; 'contact'
    end
  </code></pre>
  
  <p>When I try to display the flash message in the contact form it doesnot display. I looked up possible solutions, but they dont seem to work. Any ideas what is going wrong?</p>