how to category/subcategory/city/firm-name url?

Posted by kkalgidim on Stack Overflow See other posts from Stack Overflow or by kkalgidim
Published on 2011-11-02T11:15:28Z Indexed on 2011/11/18 9:51 UTC
Read the original article Hit count: 352

Filed under:
|
|
|

iam using ruby on rails i have models -category -subcategory -city -firm

when i click on category it will show sub categories and permalink should be: xxx.com/category when i click subcategory it will show firms and city names. xxx.xom/category/subcategory when i clikc on city name it will filter firms belongs to that city xxx.com/category/subcategory/city when i clikc on firm name it will show xxx.com/category/subcategory/city/firm-name

firms may have more than one sub category

i used premalink_fu but i could not do that sub category system. category,subcategory,city,firm tables have their own permalink field on db. but i dont know how to combine them dynamically.

i can do xxx.com/category but icant do xxx.com/category/subcategory

how can i do that please help me

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about url