In my Phoenix application, I want to add a query string to a URL:
some_cool_path(@conn, :index, "view-mode": "table")
I expected that it would generate a URL like /some_cool?view-mode=table
, but instead it throws an exception:
protocol Phoenix.Param not implemented for ["view-mode": "table"]
How do I fix that?