     arg     = Keyword.get opts, :arg, :id
     allowed = Keyword.get opts, :only, [ :index, :create, :show,
                                          :update, :patch, :delete ]
-                                         
+
     prepend_path = Keyword.get opts, :prepend_path, nil
     if prepend_path, do: prepend_path = "/" <> prepend_path <> "/"
 
-    routes  = 
+    routes  =
       [ { :get,     "#{prepend_path}#{resource}",          :index },
         { :post,    "#{prepend_path}#{resource}",          :create },
         { :get,     "#{prepend_path}#{resource}/:#{arg}",  :show },

  # Builds a `do_match/2` function body for a given route.
  defp build_match(:options, route, allows, caller) do
    body = quote do
        conn 
          |> Plug.Conn.resp(200, "") 
          |> Plug.Conn.put_resp_header("Allow", unquote(allows)) 
          |> Plug.Conn.send_resp
      end



  defp ignore_args(nil), do: ""
  defp ignore_args(str) do
    str
      |> String.to_char_list
      |> do_ignore_args
      |> to_string
  end

