title: Rails form doesn't display in the view
body: <p>Similar to <a href="https://stackoverflow.com/questions/44107645/rails-form-doesnt-show-up">Rails: form doesn&#39;t show up</a> post, I've run into a similar issue but can't figure out what I'm doing wrong.  the only thing in the view that shows up is the h1 &quot;New User&quot;.</p>
  <pre><code>.container.mt-4
    %h1 New User
  
    = form_for([:admin, @user]) do |f|
      - if @user.errors.any? 
        #error_explanation
          %h2 #{pluralize(@user.errors.count, &quot;error&quot;)} prohibited this user from being saved:
          %ul
            - @user.errors.full_messages.each do |msg|
              %li %{msg
            .field
              = f.label :email 
              = f.text_field :email
            .field
              = f.label :password 
              = f.password_field :password 
            .field
              = f.label :password_confirmation 
              = f.password_field :password_confirmation 
            .action
              = f.submit 
      
  </code></pre>
  <p>here's my users controller in admin</p>
  <pre><code>class Admin::UsersController &lt; ApplicationController
    def index
      @users = User.all
    end
  
    def new
      @user = User.new
    end
  
    def create
      @user = User.new(params[:user])
  
      respond_to do |format|
        if @user.save
          format.html { redirect_to admin_users_url, notice: 'User was successfully created.' }
          format.json { render json: @user, status: :created, location: [:admin,@user] }
        else
          format.html { render action: &quot;new&quot; }
          format.json { render json: @user.errors, status: :unprocessable_entity }
        end
      end
    end
  end
  </code></pre>
  <p>Like in the other post, Rails no longer raises errors after I fixed the syntax errors it complained about.</p>