{"action":"created","issue":{"url":"https://api.github.com/repos/justinfrench/formtastic/issues/1144","repository_url":"https://api.github.com/repos/justinfrench/formtastic","labels_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1144/labels{/name}","comments_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1144/comments","events_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1144/events","html_url":"https://github.com/justinfrench/formtastic/issues/1144","id":64122703,"number":1144,"title":"Field flattens array from DB","user":{"login":"rhulse","id":30732,"avatar_url":"https://avatars.githubusercontent.com/u/30732?v=3","gravatar_id":"","url":"https://api.github.com/users/rhulse","html_url":"https://github.com/rhulse","followers_url":"https://api.github.com/users/rhulse/followers","following_url":"https://api.github.com/users/rhulse/following{/other_user}","gists_url":"https://api.github.com/users/rhulse/gists{/gist_id}","starred_url":"https://api.github.com/users/rhulse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhulse/subscriptions","organizations_url":"https://api.github.com/users/rhulse/orgs","repos_url":"https://api.github.com/users/rhulse/repos","events_url":"https://api.github.com/users/rhulse/events{/privacy}","received_events_url":"https://api.github.com/users/rhulse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/justinfrench/formtastic/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-24T23:05:00Z","updated_at":"2016-04-17T21:03:05Z","closed_at":null,"body":"I just upgraded to Formtastic to version 3 from V 2.\r\n\r\n I have a model that has tags on it (acts as taggable on). To edit these in a form I have .tag_list on the model.\r\n\r\nWhen I use tag_list as a field name it flattens the array and puts spaces between the values.\r\n\r\nIn version 2 in put a comma seperated list in the values.\r\n\r\nTo temporarily fix this I am doing this:\r\n\r\n    def tag_field(form, field, data, title=nil)\r\n        values = form.object.send(field).join(',')\r\n        form.input field, input_html: {value: values, autocomplete: 'off'}, wrapper_html: {'data-tags' => data}, label: title\r\n    end\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/justinfrench/formtastic/issues/comments/211116500","html_url":"https://github.com/justinfrench/formtastic/issues/1144#issuecomment-211116500","issue_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1144","id":211116500,"user":{"login":"gingerlime","id":524274,"avatar_url":"https://avatars.githubusercontent.com/u/524274?v=3","gravatar_id":"","url":"https://api.github.com/users/gingerlime","html_url":"https://github.com/gingerlime","followers_url":"https://api.github.com/users/gingerlime/followers","following_url":"https://api.github.com/users/gingerlime/following{/other_user}","gists_url":"https://api.github.com/users/gingerlime/gists{/gist_id}","starred_url":"https://api.github.com/users/gingerlime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gingerlime/subscriptions","organizations_url":"https://api.github.com/users/gingerlime/orgs","repos_url":"https://api.github.com/users/gingerlime/repos","events_url":"https://api.github.com/users/gingerlime/events{/privacy}","received_events_url":"https://api.github.com/users/gingerlime/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T21:03:05Z","updated_at":"2016-04-17T21:03:05Z","body":"I tested very quickly, but as far as I can tell, yes. It does work. I'm working together with @joker-777 so I'll wait for him to confirm, since he's been working on this bug on our end."}}