Yurii Rashkovskii
nagger · Account owner
Yurii Rashkovskii's latest activity
Monday, April 28 2008
15
Figure out how to organize views for associations
was updated
in StrokeDB
-
Yurii Rashkovskii commented at 9:00 AM// #14 had some useful code snippet but was resolved as duplicate for this ticket
-
Yurii Rashkovskii commented at 8:58 AMOne of my concerns is that having N views to execute on each index update for N associations defined within database might be PIA
-
- Title changed from Consider allowing unnamed views to Figure out how to organize views for associations
The picture you're trying to describe is not clear for me.
Here is an attempt to summarize:
Lets say we have a view for all has_many associations:
(the code...
-
Yurii Rashkovskii commented at 8:19 AMPlease note that "{container}_has_many_{items}" will need to include nsurls for both container and items as well. Is that fine?
-
Yurii Rashkovskii created the ticket at 6:37 AMThe idea is to allow unnamed views. They should be quite useful for associations, something like
User = Meta.new has_many :items endproduces following ...