Forum: Ruby on Rails Doubt in Routes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6983e7aaea82078286d067a9d4e688d4?d=identicon&s=25 Daynthan Kabilan (Guest)
on 2014-06-05 07:32
(Received via mailing list)
Hi,

I have one doubt in routes,

Scenarios:

Format -1:
http://localhost:3000/city/category/sub-category/u...
<http://localhost:3000/walnut-creek-ca/sports/yoga/...

I have written the routes for the above format-1

 match '/:city-ca/:categ/:sub_categ/:busi_name' =>
'landing#follow_cities'

it working fine for me.


Format -2:
http://localhost:3000/city/provider-name/category/...
<http://localhost:3000/walnut-creek-ca/walnut-creet...

 How to write for the above format-2



The format-2 changes for SEO is it possible to write above url structure
in
rails..
This topic is locked and can not be replied to.