This a newbie question. I am just going through the step by step sample application in Programming Phoenix (by Chris McCord, Bruce Tate, and José Valim). I am on chapter nine. I am trying to compile the application but I am getting this:
== Compilation error on file web/views/video_view.ex ==
** (CompileError) web/templates/video/index.html.eex:23: undefined function watch_path/3
(stdlib) lists.erl:1338: :lists.foreach/2
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1
So, pretty clear error, right? there is no watch_path function with an arity of three. Silly me I can't find the error though. View video view simply renders an index template:
defmodule Rumbl.VideoView do
use Rumbl.Web, :view
Line 23 of index:
<%= link "Watch", to: watch_path(@conn, :show, video), class: "btn btn-default btn-xs" %>
What would be the next step backwards I need to look for the missing piece here? I apologise if the question is way too simple, I am most likely missing something but I cannot see what it is.
Basically I am asking what is the troubleshooting path I should follow.