Permit the sub_tasks_attributes and remove the class_name option from the has_many :tags, :through => :project_tags association.