I have following lines of code in bootstap.php for route,

```
Route::set('ads','ad/<ad>(/<affiliate>)')
->defaults(array(
    'controller' => 'ads',
    'action'     => 'index',
));

```

Then how I've to pass parameters to that function.Url is localhost/index.php/ads/ is working but when i'm giving localhost/index.php/ads/12 it show 404 error.I know how to access those values in ads.php but how i've to pass the parameters from url.