I would recommend exposing an instance variable in your route; like so:

```
get '/' do
  @todos = Todo.all
   # ... the rest of your route
end
```

Then modifying your erb file to reference the instance variable:

```
<% @todos.each do |task| %>
  <%= task.task %>
<% end %>
```

This makes it so your views don't know about your underlying class structure.