Forum: Ruby on Rails acts_as_taggable_on_steroids form

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.
Katsuo I. (Guest)
on 2009-03-04 13:03
Hi, i need help with a way to add tags to titles. i can not enter any
values to tags and tagging tables this way.

title_new.rhtml

<% form_tag :action=>'title_create'  do %>
<p><lable for ="title_name">Name</lable>:<%= text_field 'title', 'name'
%></p>
<p>Tags (seperate with comma ','): <%= text_field
'title','tag_list'%></p>
<%= submit_tag 'Create' %>
<% end %>

def title_new
    @title = Title.new
end


def title_create
    @title = Title.new(params[:title])
    @title.tag_list
    @title.save
end

any help will be appreciated.
thanks
This topic is locked and can not be replied to.