Using the find instead of the find_by_id will find a project using its id, change this where ever you use it in this pull request. =)