My company has asked us to create a program that would be able to be customized then implemented many times. We have a core code base which includes the entire MVC structure. We would like to have that core separated from the customizations (kept in a box) but still give the flexibility to create your own entire set of MVC to work with our core. I know I can''t make plugins with Controllers and Models, but that''s kinda the idea we are looking for. I already know about engines, and that is perfect, but we are a little worried about the future. The last thing I need is to spend 12 months on a project that is dependent upon someone else''s plugin. What are your thoughts? Is there another approach to enable this kind of plugin-type functionality with Controllers and Models? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mike P wrote:> What are your thoughts? Is there another approach to enable this kind > of plugin-type functionality with Controllers and Models? >You can write plugins that generate controllers, models, views, migration scripts based on templates in your plugin. If your core is stable that could be an option. Behavior can be written into plugins and then spread across a specifc controller or all controllers in the init.rb: ActionController::Base.send(:include, MyPlugin::MyControllerBehavior) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Gary Winklosky wrote:> You can write plugins that generate controllers, models, views, > migration scripts based on templates in your plugin. If your core is > stable that could be an option.Could you point me in a direction for more information about this? It sounds like it''s exactly what I need. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mike P wrote:> Could you point me in a direction for more information about this? It > sounds like it''s exactly what I need.Here''s an example of one that does some generating: http://code.google.com/p/rolerequirement/ An article on generator (what the plugin is doing) http://www.noobkit.com/rails-rails-generator -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---