My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Dhaval Singh

13 likes

·

2.0K reads

1 comment

Serguei Cambour
Serguei Cambour
Nov 4, 2023

Thank you so much for sharing such useful tips. One point: you have a tiny typo in Comapny.find_by!(name:...), - it should be Company, I suppose :).

Also in the Brake#do_brake method, I don't think the call puts "Brake id: #{self.brake.id}" to correct, - you are calling brake on the instance of the Brake class instead of just calling id method.

1
·