Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Absolutely. However, I was illustrating the point of how the different classes would act. However, since the Emergency and Friend inherit from Contact, any common duplication would best live in Contact.
While creating new emergencies the url is: http://localhost:3000/users/17/emergencies/new
If validation fails, the url is getting change as: http://localhost:3000/users/17/emergencies
And, than If i refresh the page, its getting crash, because its trying to find list of contacts.
So, how I can I fix this. Please help.
This is common and typically due to the validation failure handling of
Have a look at https://stackoverflow.com/a/41520362/722274
One way around this is to do client side validations which I have an example of this at https://www.driftingruby.com/episodes/client-side-validations