# Acts\_as\_taggable\_on\_steroids NoMethodError

**URL:** <https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-nomethoderror/114599>\
**Category:** Rails\
**Created:** [September 17, 2007, 8:55am UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-nomethoderror/114599 "2007-09-17T08:55:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nside](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nside](https://www.ruby-forum.com/u/nside)\
**Post date:** [September 17, 2007, 8:55am UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-nomethoderror/114599/1 "2007-09-17T08:55:33Z")

</div>

Hello,  
I use acts\_as\_taggable\_on\_steroids, for tagging and I get this error:

“NoMethodError (undefined method `+' for #<TagList:0x3546e94 @names=["kk"]>): .//app/controllers/user_photos_controller.rb:83:in`add\_tag’”

The code in the controller is:

def add\_tag  
@photo = @logged\_in\_user.photos.find(params[:id])  
83 @photo.tag\_list += ‘,’ + params[:tag][:name]  
@photo.save  
@new\_tag = @photo.reload.tags.last  
end

Please advise on what could the problem be, as until now I tried  
everything I knew and search the forum and net for any ideas and found  
nothing to help.

---

<div class="post-metadata">

**Author:** ![nside](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nside](https://www.ruby-forum.com/u/nside)\
**Post date:** [September 17, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-nomethoderror/114599/2 "2007-09-17T13:24:33Z")

</div>

Use this to add your tags

p.tag\_list.add(“Great”, “Awful”)

---

<div class="post-metadata">

**Author:** ![nside](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@nside](https://www.ruby-forum.com/u/nside)\
**Post date:** [September 17, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-steroids-nomethoderror/114599/3 "2007-09-17T15:40:49Z")

</div>

Ivor P. wrote:

> Use this to add your tags
> 
> p.tag\_list.add(“Great”, “Awful”)

Hello, Thank you very much, it worked swell. I’m still trying thou to  
understand why it didn’t worked the other way.

Anyway thanks again for the help and best regards.
