title: Using Devise and textarea, posting after sign in
body: <p>I am using Devise for authentication in my website. 
  I want the user be able to post in the text area if he/she is signed in, if not he'll type what he wants to post in the textarea and when he click on post it pops up a sign-in dialog where user sign-in/sign-up and then it automatically post his comment in the text area to the website.</p>
  
  <p>I'm not sure if I'm using the right logic, but I have the post button to post the comment if user signed-in, otherwise do nothing and javascript opens up the login-dialog. The login/sing-up works but I figure out how to post the message automatically after that.</p>
  
  <p>This is my code for the button:</p>
  
  <pre><code> &lt;% if user_signed_in? %&gt;
      &lt;%= f.submit :value =&gt; t(:submit_comment_text), :class =&gt; "submit-button" %&gt;
   &lt;% else %&gt;
      &lt;input class="submit-button" id="comment_submit_nlogged"  value="Post!"/&gt;
   &lt;% end %&gt;
  </code></pre>
  
  <p>The first part works fine, but the second part the dialog opens up and the user sign in, but it refreshes the page and I loose whatever user typed in the text-area.
  I tried to get the content of the text-area through the params variable, but when devise gets called the params for text area goes away and they get replaced by devise params.</p>
  
  <p>Any idea how I can get this working?</p>