Removed a wrong has_many :contributors from project model, since that's a quality of a relation between users and projects. Added relations to projects and users on contribution model. Added some initial stuff to enable ajax on projects controller and reduced the fields in the params.