Displaying 2 results from an estimated 2 matches for "kingdom_id".
2006 Jul 15
2
Render -> ActionController -> Render -> ...
...what the result set
(has_many) by data not in the ActiveRecord. I want to filter by data
that is from a web form, from ajax, or from session variables.
ActiveRecord makes it easy enough to do so with data in the record such
as:
has_many :phylums, :finder_sql => "blah blah blah where kingdom_id =
#{id} "
But it can''t do something like
has_many :authorized_orders, :conditions => "order_owned_by =
session[:current_user]"
I tried to get around this by thinking of:
render :partial => "call another action"
But render to my knowledge can'...
2005 Dec 21
10
can an active records maps to N tables?
Hi,
Is it possbile that one active record maps to N
tables, actually the relation is 1 to 1, I wonder it
is possible.
also can a ruby object map to N tables, instead of an
active records?
Thanks you very much:)
Saiho
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com