Reputation: 4943
I'm not sure how to change a route's URL. As the :as
parameter does something else now than in Rails 2
This only changes the route helpers to faq_path
, but the url still goes to /faqs
. I want the url to be singular.
resources :faqs, :as => "faq" do
collection { post :sort }
end
Doing a single match (below) won't really be the same
match "/faq" => "faqs#index"
Upvotes: 0
Views: 462