I'm trying to implement my first decorator for my view. I'm running into an issue though. When I try to render the view I get the title error `undefined method "decorate" for #<Assignment::ActiveRecord_AssociationRelation`. I'm not sure what I'm supposed to do? Any help would be great. Here is my code.

Assignment decorator:
---------------------

```
class AssignmentDecorator < Draper::Decorator
  delegate_all
  decorates :assignment

  def status
    if finished
      "Finished"
    else
      "Waiting"
    end
  end
end

```

Pages Controller:
-----------------

```
class PagesController < ApplicationController
  before_action :verify_account!, only: :dashboard

  def home; end

  def dashboard
    @assignments = current_account.assignments.all.decorate
    @invitation = Invitation.new
  end
end

```

View:
-----

```
    <% @assignments.each do |assignment| %>
      <tr class="assignment-rows">
        <td><%= link_to assignment.name, account_assignment_path(assignment) %></td>
        <td><%= assignment.assigned_workers %></td>
        <td><%= assignment.status %></td>
      </tr>
    <% end %>

```

Error message:
[![enter image description here](https://i.stack.imgur.com/MuZZ3.png)](https://i.stack.imgur.com/MuZZ3.png)