Arul

Joined

100 Experience
0 Lessons Completed
0 Questions Solved

Activity

I have 20+ before_save callbacks for a active record. Is there a way in rails to measure the time spent on each callbacks while saving a object into the store?

I have two models User/Car. User can have many Cars. How do i prevent updates to cars if my user object is invalid? Currently Rails does not wrap the attribute update(cars) in a same transaction as user.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.