rather than look for this here, let's test this in a private method that sets the story object:
```ruby
private
def set_story
  @story = Story.find(params[:id])
rescue ActiveRecord::RecordNotFound
  flash[:error] = "We couldn't find that story."
  redirect_to stories_path
end
```

This way, we rescue a RecordNotFound error if the record doesn't exist. We can also call this before the actions that will require a specific story object with a `before_action` method.

Put this at the top (right underneath the class declaration):

```ruby
before_action :set_story, only: [:show, :edit, :update, :delete]
```