title: undefined method `students_path' for #<#<Class:0x00000003b7a860>:0x00000003b6d6d8> Did you mean? student_path
body: <p>i am getting this error for  a while 
  my student_controller.rb file:</p>
  
  <pre><code>class StudentController &lt; ApplicationController
  
  def new
  @student=Student.new
  end
  
  def create 
      @student=Student.new(params[:student])
      if @student.save
          redirect_to new_student_path
      end
  end 
  end
  </code></pre>
  
  <p>and my new.html.erb file:</p>
  
  <pre><code> student infos
   &lt;%= form_for Student.new do |f| %&gt;
   firstname:&lt;%= f.text_field :firstname %&gt; &lt;br/&gt;
   lastname:&lt;%= f.text_field :lastname %&gt; &lt;br&gt;
   &lt;%= f.submit %&gt;
   &lt;% end %&gt;
  </code></pre>
  
  <p>the student_controller.rb file is located in controller folder and new.html.erb file is located in /views/student/
  my ruby version is 2.3.0p0 and my rails version is 5.0.0
  please any help
  and my routes.rb file:</p>
  
  <pre><code>Rails.application.routes.draw do
  resources :student
  end
  </code></pre>