News for hackers. Stuff that matters.
Re:Why the Elixir language has great potential by xutopia on Thursday December 22, 2016 @10:46AM (#13237988)
Do you test your controllers? I'm trying to find some good documentation on how to do that but get warnings to use `build_conn` instead of `conn` when using the example here: https://github.com/smpallen99/coherence/wiki/Testing-with-Co...
Re:Why the Elixir language has great potential by jclem on Thursday December 22, 2016 @10:58AM (#13238098)
If you're getting that in a test, my guess is that you're not passing a context argument with `conn` in it to your test function (e.g. `test "foo", %{conn: conn} do`.

There's a deprecated `conn/0` function that you'll accidentally call instead if you forget to do this.

Re:Why the Elixir language has great potential by enraged_camel on Thursday December 22, 2016 @01:46PM (#13239365)
I don't generate my own controllers when installing Coherence. I just use the ones that come "out of the box."
Re:Why the Elixir language has great potential by behrendtio on Thursday December 22, 2016 @11:09AM (#13238163)
`conn` is the old version, newer versions of Phoenix use `build_conn`. Just use that