-
Notifications
You must be signed in to change notification settings - Fork 79
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
Are namespaces supported? #56
Comments
It turns out I may have solved this myself after looking over the other open issues, #46 actually gave me the idea to use a scope around the notifications instead. I'll continue and report my progress. |
Thank you for your contribution. The activity_notification gem is not currently tested with nested routes or scope. Since the gem uses internal simple function to find configured routes, maybe dynamic routing doesn’t work in these conditions. I would appreciate it if you could give us enhancements to support nested routes or scope. |
@simukappu, thanks for your response. It turns out I was able to scope it after all, for example:
Thanks again and I will close this issue as I was able to solve the problem with the above code. |
Support for routing scope has been released as v1.6.0. |
I am having problems adding notifications under an admin namespace.
Some background, the app has a single public page which is used to submit some information and the remaining functionality is used by administrators.
The user and notifiable models are basic:
However, when visiting http://localhost:5000/admin/users/1/notifications
I receive the following error:
Which I assume is caused by the target being
User
and the view helpers not supporting nesting, unless of course I'm (hopefully) missing something simple.The text was updated successfully, but these errors were encountered: