problem with posting with acts as taggable on steroids

hi all

i'm trying to have a post with tags included but i'm getting
undefined method `tag_with'

i've already added acts_as_taggable to the model

and on the controller the code for creating the post is:

  def create
    @post =[:post])
    @post.user = current_user
        redirect_to root_url
        render :action => 'new'

and the form on the view has the tagging code:

<p><label for="tag_list">Tags</label><br/>
<%= text_field_tag 'tag_list', @post.tags.collect{|t|}.join(" ")

since the acts_as_taggable is in the model i don't see why it would give
me undefined method.

any help would be greatly appreciateddd thank youu

You might want to have a look at the readme in the
vendor/plugins/acts_as_taggable_on_steroids directory.

You will read the text hereafter.
In short : there is not tag_with method.
To add a tag do : p.tag_list.add("Great", "Awful")

=== Basic tagging

Let's suppose users have many posts and we want those posts to have
The first step is to add +acts_as_taggable+ to the Post class:

  class Post < ActiveRecord::Base

    belongs_to :user

We can now use the tagging methods provided by acts_as_taggable,
<tt>#tag_list</tt> and <tt>#tag_list=</tt>. Both these
methods work like regular attribute accessors.

  p = Post.find(:first)
  p.tag_list # []
  p.tag_list = "Funny, Silly"
  p.tag_list # ["Funny", "Silly"]

You can also add or remove arrays of tags.

  p.tag_list.add("Great", "Awful")


Richard Yoo wrote: