title: undefined method `name' for #<User
body: <p>Hello i have the titled error when i go to <a href="http://localhost:3000/users/new" rel="nofollow">http://localhost:3000/users/new</a>
  fill out the form to create user and click the button "create user"</p>
  
  <p>My table consists of first_name, last_name, email, and password</p>
  
  <p>I tried to fix if for half an hour. Can anyone help? Thanks</p>
  
  <pre><code>class UsersController &lt; ApplicationController
    def index
      @users = User.order(:email)
      respond_to do |format|
        format.html # index.html.erb 
        format.json { render json: @users }
      end
    end
  
    # GET /users/1
    # GET /users/1.json
    def show
    end
  
    # GET /users/new
    def new
      @user = User.new
    end
  
    # GET /users/1/edit
    def edit
    end
  
    # POST /users
    # POST /users.json
    def create
      @user = User.new(user_params)
  
      respond_to do |format|
        if @user.save
          format.html { redirect_to users_url, notice: 'User #{@user.email} was successfully created.' }
          format.json { render :created, location: @user }
        else
          format.html { render :new }
          format.json { render json: @user.errors, status: :unprocessable_entity }
        end
      end
    end
  </code></pre>