С моими настройками у меня есть следующие маршруты
users GET /users(.:format) {:action=>"index", :controller=>"users"}
POST /users(.:format) {:action=>"create", :controller=>"users"}
new_user GET /users/new(.:format) {:action=>"new", :controller=>"users"}
edit_user GET /users/:id/edit(.:format) {:action=>"edit", :controller=>"users"}
user GET /users/:id(.:format) {:action=>"show", :controller=>"users"}
PUT /users/:id(.:format) {:action=>"update", :controller=>"users"}
DELETE /users/:id(.:format) {:action=>"destroy", :controller=>"users"}
Теперь в моем соответствующем представлении index.html.haml в разделе app / views ... и т. Д. У меня есть ссылка, похожая на эту,
%th#name_header= link_to "List Names", user_path( ...
Теперь я хотел бы определить эту ссылку, чтобы я мог вызвать действие index, то есть я возвращаюсь на одну и ту же страницу с разными настройками