Hi, Anthony,

Maybe, one has to think about a different syntax, e.g., something like:
create_view :my_view do |v|
    v.column :thing :from => table1.thing
    v.column :thing2 :from => table2.thing
    v.conditions :where=>some sql, :group => again_sql
end

Well, personally, I am convinced that extending AR with capabilities of 
modeling also sql views is essential advantage.

Greetings,
Giorgi




Anthony Eden wrote:
> I think the primary benefit would be that views would be included in
> schema.rb and thus would be usable in the test environment with no
> additional work required. The primary thing is that Rails would
> understand views whereas right now views just get silently ignored.
> 
> V/r
> Anthony
> 
> On 1/12/07, James Adam <[EMAIL PROTECTED]> wrote:
>>   create_view :v_stuff, %{
>> really that much better than
>> legacy-style databases at the moment, and if anything can be done make
>> > eventually moving this code into ActiveRecord or should it just remain
>> > --
>>
>> >
>>
> 
> 
> --
> Cell: 808 782-5046
> Current Location: Melbourne, FL

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to