         })
 
         case Repo.insert(changeset) do
-          {:ok, _entry} ->
-            current = [_entry]
+          {:ok, entry} ->
+            current = [entry]
         end
       end
 


    model = models[resource]

    contents = case model do
      nil ->
        render(conn, "dashboard.html")
      model ->
        sort = String.to_atom(params["sort"] || "id")

        direction = params["direction"] || "asc"
        
        entries = case conn.assigns[:entries] do
          nil ->
            query = case direction do

  plug :assign_languages
  plug :object_tree

  def dashboard(conn, _params) do
    render(conn, "dashboard.html")
  end

