title: (FunctionClauseError) no function clause matching in Access.get/3
body: <p>I am new to Elixir and currently making a transaction from Ruby. I am struggling to get around an error I am getting and because Elixir does not have <code>object.class</code>, I am struggling to understand what data type am I returning back and how to troubleshoot it. </p>
  
  <p>Anyway I am trying to seed a database from a CSV but getting the error </p>
  
  <p>Below is my code</p>
  
  <pre><code>File.stream!('users_departs.csv')
  |&gt; Stream.drop(1)
  |&gt; CSV.decode(headers: [:name, :title, :departments])
  |&gt; Enum.take(10
  |&gt; Enum.each( fn(x) -&gt; IO.inspect(x[:ok]) end )
  
   Error
  
  ** (FunctionClauseError) no function clause matching in Access.get/3
  
  The following arguments were given to Access.get/3:
  
      # 1
      {:ok,
       %{
         departments: "Sales|Marketing",
         name: "John Smith",
         title: "Customer Service"
       }}
  
      # 2
      :ok
  
      # 3
      nil
  (elixir) lib/access.ex:306: Access.get/3
  (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
  (stdlib) erl_eval.erl:878: :erl_eval.expr_list/6
  </code></pre>
  
  <p>I have 2 models, User, and Departments and I would like to seed the departments first, then create a user and then associate a user-department mapping but am struggling to get past this step.</p>
  
  <p>Any help will be appreciated</p>