removed has_many :through relationships, fixed permalinks