title: Devise and simple-private-messages
body: <p>I am using <a href="https://github.com/plataformatec/devise" rel="nofollow">Devise</a> in my Ruby on Rails 3 application. I am trying to implement private messaging in my application and I came across this gem:</p>
  
  <p><a href="https://github.com/jongilbraith/simple-private-messages" rel="nofollow">https://github.com/jongilbraith/simple-private-messages</a></p>
  
  <p>I (accidentally) ran the following command.</p>
  
  <pre><code>rails generate simple_private_messages:model User Message
  </code></pre>
  
  <p>It created the Message model. But it changed some properties of my existing User model that I had generated using Devise using the following command:</p>
  
  <pre><code>    rails generate devise User
  </code></pre>
  
  <p>Now, when I start my Ruby on Rails application I get this warning:</p>
  
  <blockquote>
    <p>[WARNING] You provided devise_for :users but there is no model User defined in your application</p>
  </blockquote>
  
  <p>And my Devise links have stopped working:</p>
  
  <blockquote>
    <p>ActionView::Template::Error (undefined local variable or method `edit_user_registration_path' for #&lt;#:0x1064c9490>):</p>
  </blockquote>
  
  <p>Can someone please suggest how can I integrate the both or revert my changes if it is not possible to use them simultaneously?</p>