{"action":"created","issue":{"url":"https://api.github.com/repos/bigtunacan/rails-jquery-autocomplete/issues/16","labels_url":"https://api.github.com/repos/bigtunacan/rails-jquery-autocomplete/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/bigtunacan/rails-jquery-autocomplete/issues/16/comments","events_url":"https://api.github.com/repos/bigtunacan/rails-jquery-autocomplete/issues/16/events","html_url":"https://github.com/bigtunacan/rails-jquery-autocomplete/issues/16","id":93872882,"number":16,"title":"If a form fails, how do I retain the autocompleted field's input?","user":{"login":"onebree","id":9038433,"avatar_url":"https://avatars.githubusercontent.com/u/9038433?v=3","gravatar_id":"","url":"https://api.github.com/users/onebree","html_url":"https://github.com/onebree","followers_url":"https://api.github.com/users/onebree/followers","following_url":"https://api.github.com/users/onebree/following{/other_user}","gists_url":"https://api.github.com/users/onebree/gists{/gist_id}","starred_url":"https://api.github.com/users/onebree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onebree/subscriptions","organizations_url":"https://api.github.com/users/onebree/orgs","repos_url":"https://api.github.com/users/onebree/repos","events_url":"https://api.github.com/users/onebree/events{/privacy}","received_events_url":"https://api.github.com/users/onebree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T19:40:08Z","updated_at":"2015-08-19T14:00:29Z","closed_at":null,"body":"I have a nested form, where I add telephone numbers to a location. If any errors are present, the index is rendered. The nested fields are still present, but the contents of each field is gone. How do I retain the contents if the form fails?\r\n\r\nI am using `nested_forms` gem, rendering the `fields_for` in a partial."},"comment":{"url":"https://api.github.com/repos/bigtunacan/rails-jquery-autocomplete/issues/comments/132608002","html_url":"https://github.com/bigtunacan/rails-jquery-autocomplete/issues/16#issuecomment-132608002","issue_url":"https://api.github.com/repos/bigtunacan/rails-jquery-autocomplete/issues/16","id":132608002,"user":{"login":"onebree","id":9038433,"avatar_url":"https://avatars.githubusercontent.com/u/9038433?v=3","gravatar_id":"","url":"https://api.github.com/users/onebree","html_url":"https://github.com/onebree","followers_url":"https://api.github.com/users/onebree/followers","following_url":"https://api.github.com/users/onebree/following{/other_user}","gists_url":"https://api.github.com/users/onebree/gists{/gist_id}","starred_url":"https://api.github.com/users/onebree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onebree/subscriptions","organizations_url":"https://api.github.com/users/onebree/orgs","repos_url":"https://api.github.com/users/onebree/repos","events_url":"https://api.github.com/users/onebree/events{/privacy}","received_events_url":"https://api.github.com/users/onebree/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T14:00:28Z","updated_at":"2015-08-19T14:00:28Z","body":"No I was not. IDK if it is because of the nested forms gem. Do you need additional info?"}}