cirandas.net

ref: master

config/routes/06_search.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Noosfero::Application.routes.draw do

  # tags
  match 'tag', controller: :search, action: :tags, via: :all
  match 'tag(/:tag)', controller: :search, action: :tag, tag: /.*/, via: :all

  # categories index
  match 'cat/*category_path', to: 'search#category_index', as: :category, via: :all
  # search
  match 'search(/:action(/*category_path))', controller: :search, via: :all, as: :search

end