How to configure your Rails engine with Rspec, Capybara, and FactoryGirl
1. Run the follow lines to generate a mountable engine
|
|
Tech && Learn && Fun
|
|
Recently, I build some Rails engines. And I found it’s a good way to organize and share reusable code across a number of applications.
Rails Engine is not like Ruby gem. It’s more like a rails app, it has its own controllers, views and migrations. And basically it has two type of engine, full or mountable.