On Feb 16, 2:22 pm, Frederick Cheung <[email protected]>
wrote:
> On 16 Feb 2009, at 12:32,Shakwrote:
>
>
>
> > But this doesn't seem to work at all.
>
> > Is there a way of programatically assigning values to ActiveRecord
> > columns?
>
> You need to call the accessor methods.

Thanks for the heads up, I managed to figure it out. However I'm now
starting to think that using AR (without tables) is more trouble than
its worth for non-trivial models - is it possible to define
relationships if there's no tables to refer to?

For example, if the RPC returns a Post with a list of Comments, how
would I write a table-less Post model which puts the Comments in the
right place, and then doesn't let Rails go off and try to complete the
model anyway?

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