Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipmw/rails-default-url-options-bug
A minimal exhibit for Rails issue #18505
https://github.com/philipmw/rails-default-url-options-bug
Last synced: 3 days ago
JSON representation
A minimal exhibit for Rails issue #18505
- Host: GitHub
- URL: https://github.com/philipmw/rails-default-url-options-bug
- Owner: philipmw
- Created: 2015-01-14T07:32:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-14T17:54:03.000Z (almost 10 years ago)
- Last Synced: 2023-02-27T18:11:27.944Z (over 1 year ago)
- Language: Ruby
- Homepage: https://github.com/rails/rails/issues/18505
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo demonstrates a bug in Rails 4.2.0:
```
% rspec action_controller_master.rb
BEFORE GET
catalog_index_path=/catalog
catalog_index_path({})=/catalog
catalog_index_path(b: 'c')=/catalog?b=c
D, [2015-01-14T09:47:44.658317 #89440] DEBUG -- :
D, [2015-01-14T09:47:44.658402 #89440] DEBUG -- :
I, [2015-01-14T09:47:44.658828 #89440] INFO -- : Started GET "/catalog" for 127.0.0.1 at 2015-01-14 09:47:44 -0800
default_url_options invoked
default_url_options invoked
AFTER GET
catalog_index_path=/catalog
catalog_index_path({})=/catalog?defarg=defval
catalog_index_path(b: 'c')=/catalog?b=c&defarg=defval
```