Add shorthand support for routes like /projects/status(.:format)

Hi, when trying to migrate Signal to Rails 3 I tried to use the shorthand route for:

match ‘/projects/status(.:format)’

but it thrown an error because the controller was not specified. This happend because actually the shorthand routes only work with routes without optional parameters. The modification to support routes ending with a optional parameters is very simple, as can be seen here:

https://rails.lighthouseapp.com/projects/8994/tickets/4423-patch-add-shorthand-support-for-routes-like-projectsstatusformat

This way, we can create a route like the specified instead of:

match ‘/projects/status(.:format)’ => “projects#status”, :as => :project_status

Applied. Thanks Diego!

jeremy