I have followed tutorial from Simply Rails 2, but I got NoMethodError

this is my story.rb model :

```
class Story < ApplicationRecord
    validates :name, :link, presence: true
    has_many :votes do 
        def latest
            find :all, :order => 'id DECS', :limit => 3
        end
    end
end

```

this is my show.html.haml view :

```
%h2
  %span#vote_score
  Score: #{@story.votes.size}
 = @story.name

#vote_form
  = form_for @story, method: "post", :url => story_votes_path(@story) do
    = submit_tag 'shove it'

%ul#vote_history
  - if @story.votes.empty?
    %em No shoves yet!
  - else
    = render :partial => 'votes/vote', :collection => @story.votes.latest

%p
  = link_to @story.link, @story.link

```

Full Error desciption :

```
undefined method `latest' for #<Vote::ActiveRecord_Associations_CollectionProxy:0x00007f4234aea9c0>
Did you mean?  last

Extracted source (around line #15):

%em No shoves yet!
  - else
    = render :partial => 'votes/vote', :collection => @story.votes.latest ##this is line 15

%p
  = link_to @story.link, @story.link

Rails.root: /home/kevin/shovell2

```

Can anyone help me to solve this ? Thank You.