Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function build/2 undefined #2

Open
garrrettt opened this issue Jun 10, 2016 · 2 comments
Open

function build/2 undefined #2

garrrettt opened this issue Jun 10, 2016 · 2 comments

Comments

@garrrettt
Copy link

I was following your tutorial, but it looks like the build function within the create function in web/controllers/pheet_controller.ex does not work. Do you know if the function was removed from Elixir?

@justinbkay
Copy link

Try build_assoc

On Fri, Jun 10, 2016 at 1:29 PM, Garrett Smith [email protected]
wrote:

I was following your tutorial, but it looks like the build function within
the create function in web/controllers/pheet_controller.ex does not work.
Do you know if the function was removed from Elixir?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2, or mute the thread
https://github.com/notifications/unsubscribe/AAAP_ljCnPUvFqrnftCokfWVutbnZblFks5qKbr-gaJpZM4IzQS1
.

Sites:
http://jbkayconstruction.com
https://twitter.com/justinbkay
http://justinbkay.tumblr.com

It always takes longer than you expect, even when you take into account
Hofstadter’s Law.

  • Hofstadter’s Law

@garrrettt
Copy link
Author

Now the pheets page works, but creating a new pheet has an error: "no function clause matching in Ecto.build_assoc/3" Also, logging in has an error: "expected at most one result but got 2 in query:" I have my code uploaded to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants