On Friday 17 April 2009, Tim Uckun wrote:
> On Sat, Apr 18, 2009 at 12:43 AM, Harold A. Giménez Ch. <
>
> [email protected]> wrote:
> > What DBMS are you using? The alternative is a "materialized view".
>
> postgres.

Have a look at

http://github.com/aeden/rails_sql_views/tree/master

and my heavily hacked version

http://github.com/mschuerig/rails_sql_views/tree/master

My version works with Rails 2.3.2, loads only the adapters that are 
really needed, and adds ActiveRecord::View as an abstract superclass for 
views that are mostly based on another model. AR::View can clone 
association definitions from the model to the view, although I haven't 
implemented all kinds yet. The existing functionality works on 
PostgreSQL, regarding the others, I'm not sure right now.

Michael

-- 
Michael Schuerig
mailto:[email protected]
http://www.schuerig.de/michael/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to