Gallery.rb
has_many :images, :counter_cache = true
On Sat, Mar 7, 2009 at 8:23 PM, pankaj pankajbhage...@gmail.com wrote:
Here is the problem
There is a gallery model and image model
gallery has many images
gallery has images_count.
When I change image from one gallery to another i have
I have already added :counter_cache with the belongs to relationship,
it cannot be added with has_many.
Any ways I am updating the counter manually, and it is not happening.
Regards,
Pankaj
On Mar 7, 5:30 pm, CFC zuso...@gmail.com wrote:
Gallery.rb
has_many :images, :counter_cache = true
2 matches
Mail list logo