title: ActiveModel::ForbiddenAttributesError in UserController#register
body: <p>Im trying to register users on my rails site. When I click the register button on the register page this is what shows up:</p>
  
  <blockquote>
    <p>ActiveModel::ForbiddenAttributesError in UserController#register
    ActiveModel::ForbiddenAttributesError</p>
  </blockquote>
  
  <p>Here is the code for my <code>user_controller.rb</code> file:</p>
  
  <pre><code>class UserController &lt; ApplicationController
    def index
      @title = "RailsSpace User Hub"
    end
  
    def register
      @title = "Register"
      if request.post? and params[:user]
        @user = User.new(params[:user])
      end
      if @user.save
        flash[:notice] = "User #{@user.screen_name} created!"
        redirect_to :action =&gt; "index"
      end
    end
  end
  </code></pre>
  
  <p>It's complaining about line 11: <code>@user = User.new(params[:user])</code> Im following code from a book so I dont know what's wrong with it.
  Does anyone have any suggestions? Thanks for all your help in advance.</p>