Created
July 4, 2019 14:37
-
-
Save zainalmustofa/e04d1dadfb9fa1a17d65a0bffee067ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
resources :photos do | |
collection do | |
get 'search' | |
end | |
end | |
# or | |
resources :photos do | |
get 'search', on: :collection | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment