Streaming video with Phoenix
Miguel Cobá
743

For Phoenix 1.3, I get a weird error “FunctionClauseError at GET /videos/new
no function clause matching in Keyword.pop/3”

`def changeset(model, params \\ :empty) do model |> cast(params, @required_fields, @optional_fields) |> put_video_file()end`

to `phoenix_video_stream/lib/phoenix_video_stream/content/video.ex`

here is the abbreviated stack:

`elixir lib/keyword.ex:899Keyword.pop/3`
`ecto lib/ecto/changeset.ex:440Ecto.Changeset.cast/6`
`lib/phoenix_video_stream/content/video.ex:21PhoenixVideoStream.Content.Video.changeset/2`

So it seems to be failing in Elixir. I think the problem is the calling code in video.ex but I’m not sure what the exact problem is since I’m new to Elixir.

Suggestions?