You can simplify these three lines by doing:

```ruby
completedarray = @tasks.select { |project_id, task| task.complete }.values
```

Also, use underscores inbetween words, e.g. `completed_array`