On Dec 5, 8:26 am, Mike B <[email protected]> wrote:
> Let me ask you this:
>
> If I do set up a view to rename the columns, can I override the create
> and update method in ActiveRecord::Base to make it insert into the
> original table (rather than the view)? Having looked at
> ActiveRecord::Base a little bit it would seem that I can do this
> without any ill effects.

Why can't you just insert/update the view? As long as the view isn't
joining any other tables, you can treat it as a regular table (AFAIK
in MySQL, SQL Server, PostgreSQL).

-- 
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