# Extending acts\_as\_taggable\_on\_steroids

**URL:** <https://www.ruby-forum.com/t/extending-acts-as-taggable-on-steroids/145074>\
**Category:** Rails\
**Created:** [August 5, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/extending-acts-as-taggable-on-steroids/145074 "2008-08-05T19:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [August 5, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/extending-acts-as-taggable-on-steroids/145074/1 "2008-08-05T19:23:41Z")

</div>

I’m extending acts\_as\_taggable\_on\_steroids to allow me to give a value  
to each tag.

I’ve got a User table, a Tag table, and a Value table. I want each  
Value to refer to a specific tag and a specific user.

Like so:

class Value \< ActiveRecord::Base  
belongs\_to :tag  
belongs\_to :user  
end

When you’re viewing a user, you can see its list of tags, and click on  
one to add a new value to the tag.

What’s the best way of properly assigning the user\_id and the tag\_id  
to the new Value object?

Should I pass them in URL params, put them in the session? Is there a  
more elegant solution? What am I missing?

Thanks,

Jeff C.man
