-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
ActiveRecord::RecordNotFound when validations fail #148
Comments
The error is happening across two requests, and I'm not sure what your form does, or what parameters it sends. If you can show me more explicitly the steps to reproduce the problem, I'd be happy to look into it but from the information you've given so far I suspect it may be best to debug your application a bit more to figure out if FriendlyId is really the problem, and if so, how and why. |
I reproduced the bug in a minimal app, I can upload it if you like.
In my minimal app the form is a vanilla rails scaffolded form. |
Sure if you could upload the app somewhere or email it to norman@njclarke.com that would be great. Thanks! |
You can find the app here: https://github.com/fschwahn/friendly_id_issue_148 |
Thanks a lot for the help reproducing the bug. I've added a failing test for the issue and will get a fix in as soon as possible. |
Thanks for fixing it! I just tested it was my app and it works now. |
Hi,
I'm using the following versions:
I have a model like this:
When I edit this model and change the name (which is used for the slug), and a validation fails, I am correctly redirected back to the form. However, when I send the form again, a
ActiveRecord::RecordNotFound
-exception is raised.Thanks for the great gem!
The text was updated successfully, but these errors were encountered: