Hey all,
I find this in ruby guide:
resources :photos do
collection do
get 'search'
end
end
It will also create the search_photos_url and search_photos_path route
helpers.
So I try to implement:
#routes
resources :core do
collection do
get 'coreim'
get 'corer'
end
Phil
On Wed, Mar 30, 2011 at 10:45 AM, John Merlino li...@ruby-forum.com wrote:
Hey all,
I find this in ruby guide:
resources :photos do
collection do
get 'search'
end
end
It will also create the search_photos_url and search_photos_path route
helpers.
So I try to implement:
Excerpts from John Merlino's message of Wed Mar 30 08:45:50 -0700 2011:
So I try to implement:
#routes
resources :core do
collection do
get 'coreim'
get 'corer'
end
end
With that routes file:
$ rake routes
coreim_core_index GET/core/coreim(.:format)
Excerpts from David J. Hamilton's message of Wed Mar 30 09:22:01 -0700 2011:
This rather surprised me, since I had the same expectations as you. Further
investigation suggestions inflections are to blame.
suggestions → suggests.
--
med vänlig hälsning
David J. Hamilton
--
You received this
4 matches
Mail list logo