title: No route matches [PATCH] "/persons"
body: <h2>I'm new to the ruby. He saw such a mistake, he looked through a lot of articles, I do everything exactly as instructed, but nothing comes out. With Create everything is in order but on the update swears.</h2>
  
  <blockquote>
    <p>my action:</p>
  </blockquote>
  
  <pre><code>...
  
  def edit
      @person = Person.find(params[:id])
  end
  
  def update
      @person = Person.find(params[:id])
      @person.update_attributes(person_params)
   if @person.errors.empty?
      redirect_to @person
   else 
      render 'edit'
   end
  end
  
  private
    def person_params
        params.require(:person).permit(:number, :family, :name, :patronymic, :other)
    end
  </code></pre>
  
  <blockquote>
    <p>my views:</p>
  </blockquote>
  
  <pre><code>&lt;h1&gt;Редактировать личность&lt;/h1&gt;
  &lt;%= form_for @person, url: persons_path do |f| %&gt;
      &lt;p&gt;Номер&lt;/p&gt;
         &lt;p&gt;&lt;%= f.text_field :number %&gt;&lt;/p&gt;
  ...
         &lt;p&gt;&lt;%= f.submit "изменить базу" %&gt;&lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <blockquote>
    <p>and router:</p>
  </blockquote>
  
  <pre><code>Rails.application.routes.draw do
       resources :persons
  end
  </code></pre>