rails页面静态路由设置

阅读更多
get 'search/category/:q' => 'search#group_by_category', as: 'group_by_category'

实现类似:
http://localhost:3000/search/category/api
http://localhost:3000/search/category/catalyst
而不是之前的:
http://localhost:3000/search/category?q=api
http://localhost:3000/search/category?q=catalyst


get "/duihuan" =>"my_whmall/ticket_center/my_tickets#index"

你可能感兴趣的:(rails页面静态路由设置)