title: acts_as_taggable undefined method 'each' error
body: <p>I am trying to use acts_as_taggable plugin to include tag functionality in my ruby on rails application. I have attached the code. I have installed the plugin and also run the migrations.I am getting the following error.</p>
  
  <pre><code>undefined method `each' for "value of the parameter":String
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <p><strong>location.rb</strong> - location table has name, tags(this is an additional field I have in the table, I added it before knowing about the plugin :), city fields </p>
  
  <pre><code>class Location &lt; ActiveRecord::Base
    belongs_to :profile
    acts_as_taggable
  end
  </code></pre>
  
  <p><strong>profile.rb</strong></p>
  
  <pre><code>class Profile &lt; ActiveRecord::Base
    has_many :locations
    acts_as_tagger
  end
  </code></pre>
  
  <p><strong>location_controller.rb</strong></p>
  
  <pre><code>def create
    @location = Location.new(params[:location])
    @location.tag_list = ["tags1","tags2"]
    if @location.save
       redirect_to(@location)
    else
       redirect_to(@profile)
    end 
  end
  </code></pre>
  
  <p><strong>Application Trace</strong></p>
  
  <pre><code>/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_collection.rb:320:in `replace'
  /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations.rb:1331:in `block in collection_accessor_methods'
  /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2906:in `block in assign_attributes'
  /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2902:in `each'
  /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2902:in `assign_attributes'
  /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2775:in `attributes='
  /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2473:in `initialize'
  /Users/felix/rails_projects/sample_app/app/controllers/locations_controller.rb:92:in `new'
  /Users/felix/rails_projects/sample_app/app/controllers/locations_controller.rb:92:in `create'
  </code></pre>
  
  <p>Thanks</p>