title: How can I get the devise error messages in a pop up
body: <p>I am using jquery to load the signup form of devise as a popup. The problem is the I am not able to load the error messages of the devise in the popup.</p>
  
  <p>If I click on the empty signup form I am redirected to the another page where I see the error message.</p>
  
  <p>I have gone through the github posts of devise but could not find the solution which I am looking for.</p>
  
  <p>I have created a method in the application helper so that the <code>&lt;%= devise_error_messages! %&gt;</code> code in the form helper works properly.</p>
  
  <p>The application helper code is as follows :- </p>
  
  <pre><code> def devise_error_messages!
     resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join   
    end
  </code></pre>
  
  <p>I know that something is wrong with this but cannot figure out what. Can anyone please help me out with this one.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I think that since the errors are not showing in the pop up box when I hit the submit button, there might be an issue with the registration controller's create action. Will try to override the default create action of the registration controller of devise. Lets see if it works with these change.</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>Made the changes which I mentioned in the update above although it is not working it gives a feeler that I am very close to the solution :)</p>
  
  <p>Still waiting for some help.</p>
  
  <p>Thanks,</p>