{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4307","repository_url":"https://api.github.com/repos/activeadmin/activeadmin","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4307/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4307/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4307/events","html_url":"https://github.com/activeadmin/activeadmin/issues/4307","id":132191393,"number":4307,"title":"New resource is decorated when form is reloaded","user":{"login":"alessandro1997","id":395073,"avatar_url":"https://avatars.githubusercontent.com/u/395073?v=3","gravatar_id":"","url":"https://api.github.com/users/alessandro1997","html_url":"https://github.com/alessandro1997","followers_url":"https://api.github.com/users/alessandro1997/followers","following_url":"https://api.github.com/users/alessandro1997/following{/other_user}","gists_url":"https://api.github.com/users/alessandro1997/gists{/gist_id}","starred_url":"https://api.github.com/users/alessandro1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessandro1997/subscriptions","organizations_url":"https://api.github.com/users/alessandro1997/orgs","repos_url":"https://api.github.com/users/alessandro1997/repos","events_url":"https://api.github.com/users/alessandro1997/events{/privacy}","received_events_url":"https://api.github.com/users/alessandro1997/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-08T16:38:40Z","updated_at":"2016-02-08T22:43:04Z","closed_at":null,"body":"When a new resource has validation errors and the page is reloaded, the resource gets decorated and the decorated values appear in the fields in place of the user's original input.\r\n\r\nThis can be fixed by undecorating the resource at the beginning of the ```form``` block:\r\n\r\n```ruby\r\nform do |f|\r\n  f.object = f.object.object if f.object.respond_to?(:object)\r\n\r\n  # ...\r\nend\r\n```\r\n\r\nStill, this shouldn't be happening. Is this a known bug? I've done some research but didn't find anything."},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/181605024","html_url":"https://github.com/activeadmin/activeadmin/issues/4307#issuecomment-181605024","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4307","id":181605024,"user":{"login":"seanlinsley","id":688886,"avatar_url":"https://avatars.githubusercontent.com/u/688886?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlinsley","html_url":"https://github.com/seanlinsley","followers_url":"https://api.github.com/users/seanlinsley/followers","following_url":"https://api.github.com/users/seanlinsley/following{/other_user}","gists_url":"https://api.github.com/users/seanlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlinsley/subscriptions","organizations_url":"https://api.github.com/users/seanlinsley/orgs","repos_url":"https://api.github.com/users/seanlinsley/repos","events_url":"https://api.github.com/users/seanlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/seanlinsley/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T22:43:04Z","updated_at":"2016-02-08T22:43:04Z","body":"Actually #2905 and its PR, #2911, stopped decorating forms, which was then followed up with #2912.\r\n\r\nWhat version of Active Admin are you using?"}}