title: Friendly_Id record not found
body: <p>I get a record not found exception using friendly_id 5.0 stable with Rails 4.0</p>
  
  <p>Error:</p>
  
  <p><img src="https://i.stack.imgur.com/X6Cfz.png" alt="enter image description here"></p>
  
  <p>Migration:</p>
  
  <pre><code>class AddSlugToUsers &lt; ActiveRecord::Migration
      def change
         add_column :users, :slug, :string
         add_index :users, :slug
      end
  end
  </code></pre>
  
  <p>Controller: </p>
  
  <pre><code>class UsersController &lt; ApplicationController
    load_and_authorize_resource
    before_filter :authenticate_user!
  
    def index
      authorize! :index, @user, :message =&gt; 'Not authorized as an administrator.'
      @users = User.all
    end
  
    def show
      #@user = User.find(params[:id])
      @user = User.friendly.find(params[:id])
    end
  
    def update
      authorize! :update, @user, :message =&gt; 'Not authorized as an administrator.'
      @user = User.find(params[:id])
      if @user.update_attributes(params[:user], :as =&gt; :admin)
        redirect_to users_path, :notice =&gt; "User updated."
      else
        redirect_to users_path, :alert =&gt; "Unable to update user."
      end
    end
  
  
    def destroy
      authorize! :destroy, @user, :message =&gt; 'Not authorized as an administrator.'
      user = User.find(params[:id])
      unless user == current_user
        user.destroy
        redirect_to users_path, :notice =&gt; "User deleted."
      else
        redirect_to users_path, :notice =&gt; "Can't delete yourself."
      end
    end
  
  end
  </code></pre>
  
  <p>The Data:</p>
  
  <pre><code>    INSERT INTO 
  users(id,email,encrypted_password,reset_password_token,reset_password_sent_at,remember_created_at,
  sign_in_count,current_sign_in_at,last_sign_in_at,current_sign_in_ip,last_sign_in_ip,
  created_at,updated_at,first_name,last_name,alias,bio,slug) 
  VALUES 
  (10,'me1@example.com','$2a$10$MYHASG','',null,null,0,null,null,'','',
  Invalid Date,Invalid Date,'greek','god','tool','','tool');
  </code></pre>
  
  <p>It works if I put the ID into the url </p>
  
  <pre><code> http://0.0.0.0:3000/users/10
  </code></pre>
  
  <p>but does not work when using the slug</p>
  
  <pre><code> http://0.0.0.0:3000/users/tool
  </code></pre>