using *_path and *_url functions with nested resources

adverts_url(:user_id => 1) should generate

/user/1/adverts

adverts_url(:user_id => 1, :id => 99) should generate

/user/1/adverts/99

Use the same params for the *_path functions.

Regards, John