{"action":"created","issue":{"url":"https://api.github.com/repos/refile/refile/issues/408","labels_url":"https://api.github.com/repos/refile/refile/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/refile/refile/issues/408/comments","events_url":"https://api.github.com/repos/refile/refile/issues/408/events","html_url":"https://github.com/refile/refile/issues/408","id":123374227,"number":408,"title":"attachment_field is not populating with values after failed form validation","user":{"login":"ctro","id":11878,"avatar_url":"https://avatars.githubusercontent.com/u/11878?v=3","gravatar_id":"","url":"https://api.github.com/users/ctro","html_url":"https://github.com/ctro","followers_url":"https://api.github.com/users/ctro/followers","following_url":"https://api.github.com/users/ctro/following{/other_user}","gists_url":"https://api.github.com/users/ctro/gists{/gist_id}","starred_url":"https://api.github.com/users/ctro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctro/subscriptions","organizations_url":"https://api.github.com/users/ctro/orgs","repos_url":"https://api.github.com/users/ctro/repos","events_url":"https://api.github.com/users/ctro/events{/privacy}","received_events_url":"https://api.github.com/users/ctro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T22:42:54Z","updated_at":"2015-12-22T12:24:05Z","closed_at":null,"body":"Hi.\r\n\r\nI have an attachment_field, it looks like this:\r\n`<%= f.attachment_field :assets_pictures, multiple: true, direct: true, presigned: true %>`\r\nIt generates hidden inputs as expected, and uploads to s3 as expected. However, when my form is submitted with intentional errors I lose the values previously selected for :assets_pictures. \r\n\r\nThe same happens without :multiple, :direct, and :presigned options.\r\n\r\nRuby 2.2.4\r\nRails 4.2.5\r\n\r\nIs this known to be working or not?  I'm not too sure where to start digging in.\r\n\r\nThanks!\r\n-Clint"},"comment":{"url":"https://api.github.com/repos/refile/refile/issues/comments/166605469","html_url":"https://github.com/refile/refile/issues/408#issuecomment-166605469","issue_url":"https://api.github.com/repos/refile/refile/issues/408","id":166605469,"user":{"login":"abitdodgy","id":545430,"avatar_url":"https://avatars.githubusercontent.com/u/545430?v=3","gravatar_id":"","url":"https://api.github.com/users/abitdodgy","html_url":"https://github.com/abitdodgy","followers_url":"https://api.github.com/users/abitdodgy/followers","following_url":"https://api.github.com/users/abitdodgy/following{/other_user}","gists_url":"https://api.github.com/users/abitdodgy/gists{/gist_id}","starred_url":"https://api.github.com/users/abitdodgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abitdodgy/subscriptions","organizations_url":"https://api.github.com/users/abitdodgy/orgs","repos_url":"https://api.github.com/users/abitdodgy/repos","events_url":"https://api.github.com/users/abitdodgy/events{/privacy}","received_events_url":"https://api.github.com/users/abitdodgy/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T12:24:05Z","updated_at":"2015-12-22T12:24:05Z","body":"@ctro are you whitelisting the parameters in the controller? That's what this sounds like."}}