Reputation: 1486
Is it possible to include view code in a plugin, such that an app using the plugin can simply call reference the view code like it might reference one of its own partials.
Am I off track here or are there good examples of plugins which do this..
Upvotes: 1
Views: 213
Reputation: 35515
You can do that with Rails Engines.
This functionality has long-since been moved into Rails. Here's a guide for getting started.
Upvotes: 1
Reputation: 2209
Kaminari does this. It has default views for pagination which you can override by generating views and editing them and the gem searches for them. Is that what you mean?
Upvotes: 0