Tag Archives: troubleshooting

Rails – before_save Callback Firing Twice

Hit another gotcha in my project. A model was using the before_save callback to fire a method to convert a distance from miles to kilometers. When I saved a new record the before_save callback was fired twice and so was … Continue reading

Posted in tech | Tagged , | Leave a comment