{"action":"opened","issue":{"url":"https://api.github.com/repos/smpallen99/ex_admin/issues/214","repository_url":"https://api.github.com/repos/smpallen99/ex_admin","labels_url":"https://api.github.com/repos/smpallen99/ex_admin/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/smpallen99/ex_admin/issues/214/comments","events_url":"https://api.github.com/repos/smpallen99/ex_admin/issues/214/events","html_url":"https://github.com/smpallen99/ex_admin/issues/214","id":179052344,"number":214,"title":"Issue when editing several models","user":{"login":"sobolevn","id":4660275,"avatar_url":"https://avatars.githubusercontent.com/u/4660275?v=3","gravatar_id":"","url":"https://api.github.com/users/sobolevn","html_url":"https://github.com/sobolevn","followers_url":"https://api.github.com/users/sobolevn/followers","following_url":"https://api.github.com/users/sobolevn/following{/other_user}","gists_url":"https://api.github.com/users/sobolevn/gists{/gist_id}","starred_url":"https://api.github.com/users/sobolevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobolevn/subscriptions","organizations_url":"https://api.github.com/users/sobolevn/orgs","repos_url":"https://api.github.com/users/sobolevn/repos","events_url":"https://api.github.com/users/sobolevn/events{/privacy}","received_events_url":"https://api.github.com/users/sobolevn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-24T21:16:19Z","updated_at":"2016-09-24T21:16:19Z","closed_at":null,"body":"I have faced an issue, when trying to edit some of the models.\r\n\r\nHere's the trace:\r\n\r\n> FunctionClauseError at GET /admin/event_speaker\r\n> no function clause matching in Access.fetch/2\r\n\r\n>  elixir lib/access.ex:147 Access.fetch/2\r\n>  elixir lib/access.ex:179 Access.get/3\r\n>  lib/ex_admin/form.ex:818 ExAdmin.Form.build_control/7\r\n>  lib/ex_admin/themes/active_admin/form.ex:75 ExAdmin.Theme.ActiveAdmin.Form.theme_wrap_item/8\r\n>  lib/ex_admin/form.ex:566 ExAdmin.Form.wrap_item/8\r\n>  lib/ex_admin/form.ex:765 anonymous fn/6 in ExAdmin.Form.build_item/5\r\n>  elixir lib/enum.ex:1623 Enum.\"-reduce/3-lists^foldl/2-0-\"/3\r\n>  lib/ex_admin/form.ex:764 anonymous fn/5 in ExAdmin.Form.build_item/5\r\n>  lib/ex_admin/themes/active_admin/form.ex:38 ExAdmin.Theme.ActiveAdmin.Form.theme_build_inputs/3\r\n>  lib/ex_admin/form.ex:513 anonymous fn/6 in ExAdmin.Form.build_main_block/4\r\n>  elixir lib/enum.ex:1623 Enum.\"-reduce/3-lists^foldl/2-0-\"/3\r\n>  lib/ex_admin/form.ex:512 ExAdmin.Form.build_main_block/4\r\n>  lib/ex_admin/themes/active_admin/form.ex:25 ExAdmin.Theme.ActiveAdmin.Form.build_form/5\r\n>  web/controllers/admin_controller.ex:199 ExAdmin.AdminController.edit/2\r\n>  web/controllers/admin_controller.ex:1 ExAdmin.AdminController.action/2\r\n>  web/controllers/admin_controller.ex:1 ExAdmin.AdminController.phoenix_controller_pipeline/2\r\n>  lib/phoenix/router.ex:261 ElixirLangMoscow.Router.dispatch/2\r\n>  web/router.ex:1 ElixirLangMoscow.Router.do_call/2\r\n>  lib/elixir_lang_moscow/endpoint.ex:1 ElixirLangMoscow.Endpoint.phoenix_pipeline/1\r\n\r\nHere's the model code: https://github.com/elixir-lang-moscow/site/blob/master/web/models/event_speaker.ex\r\nHere's the admin code: https://github.com/elixir-lang-moscow/site/blob/master/web/admin/event_speaker.ex\r\n\r\nI previously also had issues with the custom `ecto`-types which I am using for slug fields. So when I tried to comment out line [L24](https://github.com/elixir-lang-moscow/site/blob/master/web/admin/event_speaker.ex#L24):\r\n\r\n```elixir\r\ninput admin, :slug, type: :text\r\n```\r\n\r\nEverything worked fine.\r\n\r\n`mix.lock` information:\r\n> \"ex_admin\": {:hex, :ex_admin, \"0.7.6\", \"8ea0b7d21a073bd901edf37a10808a0c504d9bd952e41b19cb78a896ab253c00\", [:mix], [{:cowboy, \"~> 1.0\", [hex: :cowboy, optional: false]}, {:csvlixir, \"~> 1.0.0\", [hex: :csvlixir, optional: false]}, {:decimal, \"~> 1.0\", [hex: :decimal, optional: false]}, {:ecto, \"~> 1.1\", [hex: :ecto, optional: false]}, {:ex_queb, \"~> 0.1\", [hex: :ex_queb, optional: false]}, {:exactor, \"~> 2.2.0\", [hex: :exactor, optional: false]}, {:factory_girl_elixir, \"~> 0.1.1\", [hex: :factory_girl_elixir, optional: false]}, {:inflex, \"~> 1.5\", [hex: :inflex, optional: false]}, {:phoenix, \"~> 1.1\", [hex: :phoenix, optional: false]}, {:phoenix_ecto, \"~> 2.0\", [hex: :phoenix_ecto, optional: false]}, {:phoenix_html, \"~> 2.5\", [hex: :phoenix_html, optional: false]}, {:scrivener, \"~> 1.0\", [hex: :scrivener, optional: false]}, {:xain, \"~> 0.5.3\", [hex: :xain, optional: false]}]},\r\n  "}}
{"actor":{"display_login":"sobolevn"}}