Add support for array of tags #4

Open
weppos opened this Issue Aug 18, 2010 · 1 comment

Projects

None yet

2 participants

@fboucheros

It could be fix in one line.
Since I'm not setup for Github, here is my fix

post.rb in to_params (line 70)

params[:tags] = tags.join(' ') if tags.respond_to? :join

change to

params[:tags] = (tags.respond_to? :join) ? tags.join(',') : tags

By doing this it will support:
tags = test
tags = 'test,cool,nice'
tags = ["tools","ruby","online"].map {|t| WWW::Delicious::Tag.new(:name=> t)}
tags = WWW::Delicious::Tag.new(:name=> 'test')

My "test" code is here http://pastie.org/3373109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment