Forum: Ruby on Rails Doubt in Routes

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..
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.