title: Ruby on Rails: Encountered a syntax error while rendering template:
body: <p>Good night.
  I'm doing the getting started guide of RoR, but I have a trouble:
  When I click the New Article button that redirects to the form, Rails throw an 'Encountered a syntax error while rendering template.'
  The new.html.erb code is</p>
  
  <pre class="lang-rb prettyprint-override"><code>&lt;h1&gt;New Article&lt;/h1&gt;
  
  &lt;%= form_with scope: :article, url: articles_path, local: true do |form| %&gt;
  
  &lt;%= if @article.errors.any? %&gt;
      &lt;div id="error_explanation"&gt;
          &lt;h2&gt;
              &lt;%= pluralize(@article.errors.count, "error") %&gt;
              prohibited this article from being saved:
          &lt;/h2&gt;
          &lt;ul&gt;
              &lt;% @article.errors.full_messages.each do |msg| %&gt;
                  &lt;li&gt;&lt;%= msg %&gt;&lt;/li&gt;
              &lt;% end %&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;% end %&gt;
  
      &lt;P&gt;
          &lt;%= form.label :title %&gt;&lt;br&gt;
          &lt;%= form.text_field :title %&gt;
      &lt;/p&gt;
  
      &lt;p&gt;
          &lt;%= form.label :text %&gt;&lt;br&gt;
          &lt;%= form.text_area :text %&gt;
      &lt;/p&gt;
  
      &lt;p&gt;
          &lt;%= form.submit %&gt;
      &lt;/p&gt;
  &lt;% end %&gt;
  
  &lt;%= link_to 'Back', articles_path %&gt;
  </code></pre>
  
  <p>The code is the same as the guide's code, so i don't know where the error or errors can be.
  I also attach the error screenshot if it's any help.
  <a href="https://i.stack.imgur.com/X627h.png" rel="nofollow noreferrer">Rails error message when I want tho create a new Article</a></p>