Using Git Hooks is a great way to automatically execute scripts for parts of your development process that you may otherwise forget to run. In this episode, we look at creating a maintainable way to install and manage git hooks so that they can be used in your project and shared to other team members.
Routing in Rails is small but an important part of our applications. The Rails router recognizes URLs and dispatches them to a controller's action, or to a Rack application. It can also generate paths and URLs, avoiding the need to hardcode strings in your views.
Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema format to SQL. Scenic provides a convention for versioning views that keeps your migration history consistent and reversible and avoids having to duplicate SQL strings across migrations.