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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---