delagoya (owner)

Fork Of

Revisions

gist: 39751 Download_button fork
public
Public Clone URL: git://gist.github.com/39751.git
Embed All Files: show embed
router.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# original
# resources :groups do
# match("/find").to(:action => 'find')
# end
 
#new
resources :groups, :collection => {:find => :get}
 
# or
resources :groups do
  collection :find, :to => 'find', :method => :get
end
 
 
# results in /groups/:group_id/find
# how can i get it to just be /groups/find