# How to share components between apps

**URL:** <https://www.ruby-forum.com/t/how-to-share-components-between-apps/155356>\
**Category:** Rails\
**Created:** [December 11, 2008, 12:02am UTC](https://www.ruby-forum.com/t/how-to-share-components-between-apps/155356 "2008-12-11T00:02:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newbee-robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dbc845/32.png) [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Post date:** [December 11, 2008, 12:02am UTC](https://www.ruby-forum.com/t/how-to-share-components-between-apps/155356/1 "2008-12-11T00:02:31Z")

</div>

I know you’re gonnna say plugins, but bear with me.

I’m a Facebook app developer, and I have an array of different ones  
going. I want them all to work off the same basic framework I’ve  
created, but I’m not sure what the best way to do that is. This is what  
I want to share:

- various filters in the application controller
- models to store users, etc, complete with the database table
- an entire controller devoted to displaying stats
- various display helpers
- several plugins and config files

I don’t know much Ruby metaprogramming, can I accomplish all this with  
plugins? Would it be easier to just individually pull all the shared  
files from a common repository?

---

<div class="post-metadata">

**Author:** ![newbee-robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/dbc845/32.png) [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Post date:** [December 11, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/how-to-share-components-between-apps/155356/2 "2008-12-11T16:33:28Z")

</div>

[http://rails-engines.org/](http://rails-engines.org/)
