Last active
August 29, 2015 14:23
-
-
Save philosodad/748e46aae4b686970236 to your computer and use it in GitHub Desktop.
Enumerable Not Implemented Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Enumerable not implemented for %Dashex.Project{__meta__: %Ecto.Schema.Metadata{source: "projects", state: :loaded}, badges: [%Dashex.Badge{__meta__: %Ecto.Schema.Metadata{source: "badges", state: :loaded}, id: 5, image_url: "https://img.shields.io/travis/bitpay/ruby-client.svg?style=flat-square", inserted_at: %Ecto.DateTime{day: 12, hour: 21, min: 57, month: 6, sec: 41, usec: 0, year: 2015}, name: "Travis", project: #Ecto.Association.NotLoaded, project_id: 6, updated_at: %Ecto.DateTime{day: 12, hour: 21, min: 57, month: 6, sec: 41, usec: 0, year: 2015}}, %Dashex.Badge{__meta__: %Ecto.Schema.Metadata{source: "badges", state: :loaded}, id: 8, image_url: "https://img.shields.io/codeclimate/github/bitpay/ruby-client.svg?style=flat-square", inserted_at: %Ecto.DateTime{day: 12, hour: 22, min: 0, month: 6, sec: 55, usec: 0, year: 2015}, name: "Code Climate", project: #Ecto.Association.NotLoaded, project_id: 6, updated_at: %Ecto.DateTime{day: 12, hour: 22, min: 0, month: 6, sec: 55, usec: 0, year: 2015}}], homepage: "https://github.com/bitpay/ruby-client", id: 6, inserted_at: %Ecto.DateTime{day: 12, hour: 21, min: 56, month: 6, sec: 41, usec: 0, year: 2015}, name: "ruby-client", updated_at: %Ecto.DateTime{day: 12, hour: 21, min: 56, month: 6, sec: 41, usec: 0, year: 2015}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= link "Back", to: project_path(@conn, :index, @project) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[error] #PID<0.329.0> running Dashex.Endpoint terminated | |
Server: localhost:4000 (http) | |
Request: GET /projects/6/badges/8/edit | |
** (exit) an exception was raised: | |
** (Protocol.UndefinedError) protocol Enumerable not implemented for %Dashex.Project{__meta__: %Ecto.Schema.Metadata{source: "projects", state: :loaded}, badges: [%Dashex.Badge{__meta__: %Ecto.Schema.Metadata{source: "badges", state: :loaded}, id: 5, image_url: "https://img.shields.io/travis/bitpay/ruby-client.svg?style=flat-square", inserted_at: %Ecto.DateTime{day: 12, hour: 21, min: 57, month: 6, sec: 41, usec: 0, year: 2015}, name: "Travis", project: #Ecto.Association.NotLoaded<association :project is not loaded>, project_id: 6, updated_at: %Ecto.DateTime{day: 12, hour: 21, min: 57, month: 6, sec: 41, usec: 0, year: 2015}}, %Dashex.Badge{__meta__: %Ecto.Schema.Metadata{source: "badges", state: :loaded}, id: 8, image_url: "https://img.shields.io/codeclimate/github/bitpay/ruby-client.svg?style=flat-square", inserted_at: %Ecto.DateTime{day: 12, hour: 22, min: 0, month: 6, sec: 55, usec: 0, year: 2015}, name: "Code Climate", project: #Ecto.Association.NotLoaded<association :project is not loaded>, project_id: 6, updated_at: %Ecto.DateTime{day: 12, hour: 22, min: 0, month: 6, sec: 55, usec: 0, year: 2015}}], homepage: "https://github.com/bitpay/ruby-client", id: 6, inserted_at: %Ecto.DateTime{day: 12, hour: 21, min: 56, month: 6, sec: 41, usec: 0, year: 2015}, name: "ruby-client", updated_at: %Ecto.DateTime{day: 12, hour: 21, min: 56, month: 6, sec: 41, usec: 0, year: 2015}} | |
(elixir) lib/enum.ex:1: Enumerable.impl_for!/1 | |
(elixir) lib/enum.ex:112: Enumerable.reduce/3 | |
(elixir) lib/enum.ex:1265: Enum.reduce/3 | |
(dashex) Dashex.Router.Helpers.segments/3 | |
(dashex) web/router.ex:1: Dashex.Router.Helpers.project_path/3 | |
(dashex) web/templates/badge/edit.html.eex:6: Dashex.BadgeView."edit.html"/1 | |
(phoenix) lib/phoenix/view.ex:197: Phoenix.View.render_within/3 | |
(phoenix) lib/phoenix/view.ex:429: Phoenix.View.render_to_iodata/3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment