Specifying Entire Path As Optional Rails 3.0.0
- by Kevin Sylvestre
I want to create a Rails 3 route with entirely optional parameters. The example route is:
match '(/name/:name)(/height/:height)(/weight/:weight)' => 'people#index'
The route works if I specify it as:
match '/people(/name/:name)(/height/:height)(/weight/:weight)' => 'people#index'
But I want to have this as the root URL. Thanks.