I am using acts_as_taggable and everything seems to be working except
that
:condition => “tags_resources.portal_id=#{portal_id}”
is not being applied.
@resource_pages = Paginator.new self,
Resource.find_tagged_with(:any => tag, :condition =>
“tags_resources.portal_id=#{portal_id}”).length, 25, @params[‘page’];
@resources = Resource.find_tagged_with( :any => tag, :condition
=> “tags_resources.portal_id=#{portal_id}”, :separator=> ’ ',
:limit => “#{@resource_pages.current.to_sql[1]},
#{@resource_pages.current.to_sql[0]}”);
I have two Active Record classes, Resource and Tag.
Can anyone please tell what am I missing here?
Many thanks in advance.
Frank