What is a Rails engine?

Technology Community › Category: Ruby on Rails › What is a Rails engine?
VietMX Staff asked 5 years ago

A Rails Engine is like a mini-application. Think of it as a nested Rails app. By “mounting” the engine in your routes file you are providing access to the mini-application via the specified path.

Rails::Engine allows you to wrap a specific Rails application or subset of functionality and share it with other applications or within a larger packaged application. Every Rails::Application is just an engine, which allows for simple feature and application sharing.