railsware/js-routes — Issue #33: Optional argument support is broken
Author: yhourdel
Created: 2012-02-17 23:49:52+00:00
State: open

Hi,

I think you made some recent changes that broke the support of optional arguments in routes.
Take, for example:
match 'foo/(:id)' => "foo#foo", :as => :foo
then
Routes.foo_path({id:42}) -> "/foo/42"
but
Routes.foo_path() -> ""

I've made a minimal example that I can send you if needed