Hello, I’m trying to set my routes.rb. I have Car that belongs to
Color and Brand. I want to build a clear url searcher without visible
variables. It’s working for me this:
match ‘color/:color’ => ‘cars#index’
match ‘brand/:brand’ => ‘cars#index’
match ‘brand/:brand/color/:color’ => ‘cars#index’
But I think I could do the 3 “match” in only one line. Also, posibly
there is other alternatives for do it. All advices are welcome.