{"action":"created","issue":{"url":"https://api.github.com/repos/smpallen99/ex_admin/issues/89","repository_url":"https://api.github.com/repos/smpallen99/ex_admin","labels_url":"https://api.github.com/repos/smpallen99/ex_admin/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/smpallen99/ex_admin/issues/89/comments","events_url":"https://api.github.com/repos/smpallen99/ex_admin/issues/89/events","html_url":"https://github.com/smpallen99/ex_admin/issues/89","id":153049790,"number":89,"title":"Add fields doesn't work with has_many in form","user":{"login":"bsidoruk","id":11561242,"avatar_url":"https://avatars.githubusercontent.com/u/11561242?v=3","gravatar_id":"","url":"https://api.github.com/users/bsidoruk","html_url":"https://github.com/bsidoruk","followers_url":"https://api.github.com/users/bsidoruk/followers","following_url":"https://api.github.com/users/bsidoruk/following{/other_user}","gists_url":"https://api.github.com/users/bsidoruk/gists{/gist_id}","starred_url":"https://api.github.com/users/bsidoruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsidoruk/subscriptions","organizations_url":"https://api.github.com/users/bsidoruk/orgs","repos_url":"https://api.github.com/users/bsidoruk/repos","events_url":"https://api.github.com/users/bsidoruk/events{/privacy}","received_events_url":"https://api.github.com/users/bsidoruk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-04T15:59:59Z","updated_at":"2016-05-04T19:45:01Z","closed_at":null,"body":"When using nested attributes in a form with the has_many command, the 'add' button does not append the blank fields to the form.  If a nested attribute already exists, the forms do appear with the correct data filled in, but trying to update them leads to the error:\r\n    \r\n    protocol Ecto.Queryable not implemented for :error, the given module does not exist\r\n    "},"comment":{"url":"https://api.github.com/repos/smpallen99/ex_admin/issues/comments/216980096","html_url":"https://github.com/smpallen99/ex_admin/issues/89#issuecomment-216980096","issue_url":"https://api.github.com/repos/smpallen99/ex_admin/issues/89","id":216980096,"user":{"login":"smpallen99","id":891045,"avatar_url":"https://avatars.githubusercontent.com/u/891045?v=3","gravatar_id":"","url":"https://api.github.com/users/smpallen99","html_url":"https://github.com/smpallen99","followers_url":"https://api.github.com/users/smpallen99/followers","following_url":"https://api.github.com/users/smpallen99/following{/other_user}","gists_url":"https://api.github.com/users/smpallen99/gists{/gist_id}","starred_url":"https://api.github.com/users/smpallen99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smpallen99/subscriptions","organizations_url":"https://api.github.com/users/smpallen99/orgs","repos_url":"https://api.github.com/users/smpallen99/repos","events_url":"https://api.github.com/users/smpallen99/events{/privacy}","received_events_url":"https://api.github.com/users/smpallen99/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T19:45:01Z","updated_at":"2016-05-04T19:45:01Z","body":"Ok, can reproduce the issue with the following models:\r\n\r\n```\r\n  schema \"users\" do\r\n    field :name, :string\r\n    has_many :addresses, NestAddr.Address\r\n  end\r\n```\r\n```\r\n  schema \"addresses\" do\r\n    field :street, :string\r\n    field :phone_number, :string\r\n    field :type, :string\r\n    belongs_to :user, NestAddr.User\r\n  end\r\n```\r\n\r\nThis will take some work since I did not account for the case of simple has_many relationship. I will need to update view generators as well as the repo code that reflects on the relationship and creates the model...\r\n"}}