From 5be9480128b2841647b204ba19ec9f45dac438f5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 7 Jul 2018 17:20:08 -0400 Subject: Added tag autocompletion refs #2 --- config/routes.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index ac5b84d..2d0a4ec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -26,5 +26,11 @@ Rails.application.routes.draw do get 'thinks/:slug', to: 'streams#show', as: :stream + resources :tags, only: [], param: :name do + collection do + get 'suggest' + end + end + mount Pokeviewer::Engine => '/poke3' end -- cgit 1.4.1