Please sign in to comment.
remove side effects on :controller option in #url_for
Bug Description: If the :controller option in an url_for call contains a leading slash it will be removed, which causes side-effects: my_controller = '/Example' url_for(:controller => my_controller) puts my_controller # => 'Example' Resolution: The route-set does not directly manipulate the string passed into #url_for. It creates a copy without the leading slash if necessary.
- Loading branch information...
Showing with 14 additions and 1 deletion.