Skip to content
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

Receiving ActiveRecord::RecordNotFound in ActivityNotification::NotificationsWithDeviseController#index #62

Closed
RailsCod3rFuture opened this issue Mar 24, 2018 · 5 comments

Comments

@RailsCod3rFuture
Copy link

When I use the link_to method <%= link_to 'Notifications, user_notifications_path(current_user) %> I receive Couldn't find User. I'm using friendly_id for usernames. I believe the username is what activity_notification is unable to recognize. http://127.0.0.1:3000/users/dantheman/notifications

@RailsCod3rFuture
Copy link
Author

How do you get the gem to function properly when I'm using the username attribute instead of the id?

@RailsCod3rFuture
Copy link
Author

Using current_user.id works. My second issue is how the address looks. Can I hide the url for the users/3/notifications to only show /notifications?

@truongnmt
Copy link

@RailsCod3rFuture but on open notification item it still can't find resources, for example resource is user.

@truongnmt
Copy link

I think you should open one at friendly_id repo

@simukappu
Copy link
Owner

We should handle this with #64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants