Forum: Ruby on Rails acts_as_taggable and tag scoping

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
francois.beausoleil (Guest)
on 2005-11-15 20:42
(Received via mailing list)
Hi !

I'm using acts_as_taggable, and the difference is that my tags should
be scoped to the current user - each user has a unique tag list.

There's this shiny new ActiveRecord::Base#with_scope that would be
perfect, except I can't use it - it needs to be done in a block.

Does anyone have a bright idea on how I should be doing this ?  I
don't really want to have to wrap all my controller methods in a
with_scope method.  On the other hand, if that's the best way to do
it...

Thanks for any tips !
This topic is locked and can not be replied to.