Forum: Ruby on Rails Model based in a query

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7fe16d11ca75c2de9d29bcc08a85ab9c?d=identicon&s=25 Pedro Cardoso (jotape)
on 2007-04-12 15:59
Hi all.

Is there a way to build a model based in a query?

That would be the same as build a model in a view, but the fact is that,
in mysql, views are very limited, so, I would like to base a model in a
query, not in a table or view. Is there a way?
This topic is locked and can not be replied to.