Jon Dalberg


7,110 Experience
71 Lessons Completed
0 Questions Solved


This is great to see but I'd prefer to put the "key" as an attribute on the class itself. Maybe Vultr::Plan::KEY or a class attribute. That way we merely pass in the "type" and the Collection can either access the "::KEY" or class attribute of the type.

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

© 2023 GoRails, LLC. All rights reserved.