rails/journey — pull request #10 by bogdan (2011-12-27 15:07:14+00:00)
Title: Fix optional route parts with parameters

In rails 3.1 the following route:

``` ruby
scope "(/optional/:optional_id)" do
resources :things
end
```

Will generate a helper:

``` ruby
things_path # => "/things"
things_path(:optional_id => nil) # => "/things"
```

In rails 3.2.0.rc1 same route generates

``` ruby
things_path # => "/optional/things"
things_path(:optional_id => nil) # => "/optional//things"
```

This patch makes journey behave in the same way as 3.1