I’ve just started my RoR programming, and I want to create plugin / engine with its view and controllers for my simple rails app. I’ve found tutorial about creatng plugins on the official rails wiki but unfortunately it is for rails 2 🙁
So, how can we write plugin with views and controllers for RoR 3 app.
Rails 3 makes it really easy to achieve this. Actually, once you declare your gem as an Engine, it will look automatically in all the basic folders:
/app,/public, …I’d suggest you have a look at this github project which is an Engine framework.
You’ll be able to build your own using this example.