CanineHQ/canine · error · ActionController::BadRequest
Invalid favoriteable type
Error message
Invalid favoriteable type
What it means
Error "Invalid favoriteable type" thrown in CanineHQ/canine.
Source
Thrown at app/controllers/favorites_controller.rb:42
partial: "layouts/sidebars/dynamic",
locals: { open_section: @favoriteable.class.name.pluralize.underscore },
)
]
end
format.json do
render json: {
action: result.action_taken,
favorited: result.action_taken == :added
}
end
end
end
private
def find_favoriteable
unless %w[Project Cluster AddOn].include?(params[:favoriteable_type])
raise ActionController::BadRequest, "Invalid favoriteable type"
end
klass = params[:favoriteable_type].constantize
klass.find(params[:favoriteable_id])
end
end
View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/controllers/favorites_controller.rb:42 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23).
Data as JSON: /api/errors/202e40111c68129d.
Report an issue: GitHub.