"undefined method `each'" error is derailing me

Can you post the actual error with line numbers?

You are referencing @id in your view, but it is never set in the controller. You also don't need to do a Project.find in the view. Do it in the controller and reference the array in the view.