-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 4: around_generate sometimes not being called #47
Comments
I am seeing this behaviour as well. This appears to occur |
+1 |
1 similar comment
+1 |
Two other options:
|
👍 |
related: rails/rails#12178 |
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
> When there's an optional scope, `link_to resource` doesn't seem to work > properly in rails 4 The fix was taken from https://git.io/v6otV. It looks like this is still an issue, so we might want to extract this monkeypatch out in to its own file if it's still broken by the time we get to Rails 4.2. - svenfuchs/routing-filter#47 - rails/rails#12178 - rails/rails#22767
With the following setup on rails 4, the around_generate method is not called for url helper methods such as
products_path
. It is being called as expected for an equivalenturl_for
call though.It seems to be related to optimized url helper methods, and the following monkey patch makes RoutingFilter behave as expected:
I don't understand the rails routing internals enough to know what's going on here, but hope there's a better solution than this monkey patch.
The text was updated successfully, but these errors were encountered: