title: NoMethodError in SessionsController#create
body: <p>Ok, I'm learning R on R from the Pragmatic Bookshelf text <em>Agile Webdevelopment with Rails 4th ed.</em> </p>
  
  <p>I'm at page 212 and I'm getting this error....<code>NoMethodError in SessionsController#create</code> and <code>app/controllers/sessions_controller.rb:7:in 'create'</code></p>
  
  <p>I'm pulling my beard out over here, I've spent days trying to track this down. Here is the create code this is pointing to...</p>
  
  <pre><code>def create
    if user = User.authenticate(params[:name], params[:password])
      session[:user_id] = user.id
      redirect_to admin_url
    else
      redirect_to login_url, :alert =&gt; "Invalid user/password combination"
    end
  end
  </code></pre>
  
  <p>Can any Guru out there assist?</p>