The path can be: `search_path(search: { query: @item.category })` (i.e. you don't need so many curly brackets).