What is a Rails engine?

Technology CommunityCategory: Ruby on RailsWhat is a Rails engine?
VietMX Staff asked 3 years ago

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.