Re: classified ads in selected city and category, habtm...

I think this can be the solution, but i can't get it work, mayby i put it in wrong place.

I try to explain more details.

First i navigate to cities listing (localhost/cities/) and then i choose city ( /cities/show/1 ).With "show" method in cities_controller i get classified ads that relates to this city and i get categories of these ads: