price = 100-500
type = liquid
main = jumps
rating = 5
base = 4
+другое значение text-align не предлагать
и тоже
Event.joins(:comments).where(comments: { title: "title"} )
SELECT "events".* FROM "events" INNER JOIN "comments" ON "comments"."commentable_id" = "events"."id" AND "comments"."commentable_type" = 'Event' WHERE "comments"."title" = 'title'
joins(:alternames)
. "Не прокатило" - не информативно для ошибкиclass Country
def self.has_altername?(name)
Altername.where(name: name, alternameable_type: "Country").present?
end
end
alternameable_type: self.name