i have a project.
the project has a status_id.
i have a statuses table with id’s and names.
the project model includes “has_one :status”
the status model includes “has_many :projects”
in my projects index page instead of project.status_id displaying 1, 2
or 3 i want to have the statuses.name accosiated with that id.
i tied putting <%= project.status.name %> but i get the error,
SQLite3::SQLException: no such column: statuses.project_id: SELECT *
FROM “statuses” WHERE (“statuses”.project_id = 6) LIMIT 1
it appears to be looking in statuses table for project_id not the other
can anyone clear this up for me?