title: form_for undefined method `user_path'
body: <p>I'm getting an error :</p>
  
  <pre><code>undefined method `user_path' for #&lt;#&lt;Class:0x007fd1f223ead0&gt;:0x007fd1f2241af0&gt;
  </code></pre>
  
  <p>when I'm trying to edit a student. I don't really understand the "user_path" method alert since I never write this in the view. (Student is not model) and I didn't use rails g scaffold to generate it.</p>
  
  <p>Thanks </p>
  
  <p>In my StudentsController :</p>
  
  <pre><code>def edit
    @student = User.find(params[:id])
  end
  </code></pre>
  
  <p>In the view (edit.html.erb) :</p>
  
  <pre><code>&lt;%= form_for(@student) do |f| %&gt; ...
  </code></pre>
  
  <p>In routes.rb :</p>
  
  <pre><code>resources :students
  </code></pre>