Building a Rails app entails creating files in multiple locations. Config dir, App, Views, Layouts, etc. If I have an existing application app framework, is there a way to add a new feature (for example, contracts management) where the files for the new feature are bundled together and not scattered willy-nilly throughout the Rails application directory tree? Pros? Cons? Thanks, Joe -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/JVqz16EFxhcJ. For more options, visit https://groups.google.com/groups/opt_out.
Jordon Bedwell
2012-Sep-02 23:57 UTC
Re: Adding functionality to an app in modular fashion?
On Sunday, 2 September 2012 18:43:23 UTC-5, jmcguckin wrote:> > Building a Rails app entails creating files in multiple locations. Config > dir, App, Views, Layouts, etc. > > If I have an existing application app framework, is there a way to add a > new feature (for example, contracts management) where the files > for the new feature are bundled together and not scattered willy-nilly > throughout the Rails application directory tree? >Build it as a Rails engine, so that it is its own application but can be included into your new applications. http://edgeapi.rubyonrails.org/classes/Rails/Engine.html> > Pros? Cons? >The pros and cons are only something you can come up with. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/O-BvjDT5lLoJ. For more options, visit https://groups.google.com/groups/opt_out.