meatherly / Phitter

A silly twitter-like app using Phoenix
10 stars 4 forks source link

function build/2 undefined #2

Open garrrettt opened 8 years ago

garrrettt commented 8 years ago

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 commented 8 years ago

Try build_assoc

On Fri, Jun 10, 2016 at 1:29 PM, Garrett Smith notifications@github.com 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 https://github.com/meatherly/Phitter/issues/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.

garrrettt commented 8 years ago

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.