Skip to content

Rails 4 leave brackets in urls #9524

@madmax

Description

@madmax

In rails 4 when route has multiple optional parameters url helper add closing bracket to path/url

Example:

get 'post(/:action(/:id))' => 'posts#index', as: :posts

and run in console:

>> app.posts_path
=> "/post)"

Tested on Rails 4.0.0.beta1 && master branch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions