title: Where is the flash message in Rails?
body: <p>Ok so I have a delete users button </p>
  
  <pre><code>  &lt;button id="delete" data="&lt;%= user_path(@user) %&gt;"&gt;Delete User&lt;/button&gt;
  </code></pre>
  
  <p>which is using the jquery ui</p>
  
  <pre><code>   $("#delete").button();
  </code></pre>
  
  <p>and i want the clicking to delete the user so i have </p>
  
  <pre><code>   $("#delete").click(function(){
        if(confirm("Are you sure?")){
            var url = $(this).attr('data');
            $.post(url, {_method:'delete'}, null, "script");
            document.location = '&lt;%= users_path %&gt;';
            return false;
        } else {
            return false;
        }
     });
  </code></pre>
  
  <p>All works great but when the page refreshes I get no flash from my destroy action </p>
  
  <pre><code>def destroy
    User.find(params[:id]).destroy
    flash[:success] = "User deleted."
    redirect_to users_path
  end
  </code></pre>
  
  <p>Any suggestions on how to fix this or restructure what i have done. I cant just use a link_to or button_to for styling purposes</p>