Customizing Rails in Other Ways
Customizing the edges of Rails, like you did in the preceding section with CSS, HTML templates, and tests, tends to be more straightforward, and more options are out there for you. Customizing Rails’ internals is more difficult. If you want, you can remove Active Record entirely and use libraries like Sequel or ROM,[128][129] but you’d be giving up a lot—Active Record is tightly coupled with many parts of Rails.
Tight coupling is usually viewed as a problem, but it’s this coupling that allows you to be so productive using Rails. The more you change your Rails app into a loosely coupled assembly of unrelated libraries, the more work you have to do getting the pieces to talk to each other. Finding the right balance ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access