You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey haha, I got your code working (I opened the last issue) but now I'm working through your tutorial (http://gogogarrett.sexy/programming-in-elixir-with-the-phoenix-framework-building-a-basic-CRUD-app/) and writing the code myself to learn Phoenix and Elixir. I have a solid background in Erlang but I'm having some trouble getting it to the current Phoenix version given the breaking changes...
In user.ex I had to change the line of code that is validate user, content: present() because I was getting this error:
Upon investigation, I realized that it had (maybe?) been changed to: @required_fields ~w(content)
Moving right along, in your tutorial, you then use the User.validate(user) function but I don't know what to change it to given the change in the Phoenix framework that removes the validate function.
I tried to do a simple case match where I match on user, given my initial thought that the model is implicitly doing the validation (with the @required_fields ~w(content)) line of code, but I'm a little stuck.
Any advice?
Thanks very much!
You can find my progress building your tutorial applicaiton here:
Sorry all - This project is very out of date, and so is the blog post. I will do my best to get this back up to date now that the christmas season is over.
Hey haha, I got your code working (I opened the last issue) but now I'm working through your tutorial (http://gogogarrett.sexy/programming-in-elixir-with-the-phoenix-framework-building-a-basic-CRUD-app/) and writing the code myself to learn Phoenix and Elixir. I have a solid background in Erlang but I'm having some trouble getting it to the current Phoenix version given the breaking changes...
In
user.ex
I had to change the line of code that isvalidate user, content: present()
because I was getting this error:Upon investigation, I realized that it had (maybe?) been changed to:
@required_fields ~w(content)
Moving right along, in your tutorial, you then use the
User.validate(user)
function but I don't know what to change it to given the change in the Phoenix framework that removes thevalidate
function.I tried to do a simple case match where I match on user, given my initial thought that the model is implicitly doing the validation (with the
@required_fields ~w(content)
) line of code, but I'm a little stuck.Any advice?
Thanks very much!
You can find my progress building your tutorial applicaiton here:
https://github.com/arthurcolle/first_phoenix_web_app
The text was updated successfully, but these errors were encountered: