First let me say that Im very new to rails, but Im a solid PHP
programmer & Im very much enjoying the transition and working with such
a nice framework. That said, Ive had my ups and downs over the past few
weeks, such is to be expected as part of the learning process, but Ive
run into a sort of brick wall, at least for my experience level.
I am using the acts_as_taggable plugin in combination with the
text_field_with_auto_complete, I have everything working for adding
images. However editing tags is proving to be difficult. I am using a
‘,’ dilimeter (:tokens) and have adjusted the acts_as_taggable code to
accept such input (including tags with spaces), but when the existing
tags are displayed in the text area they arent seperated in any way.
Here is my view:
<%= text_field_with_auto_complete ‘photo’, ‘tags’, {:size => 48},
{:tokens => ‘,’, } %>
How can I achieve a comma seperated list of tags in my edit forms text
field?
I really hope this makes sense, because Ive never ‘talked rails’ with
anyone.
-jwm