# Plugin best practices

**URL:** <https://discuss.rubyonrails.org/t/plugin-best-practices/33818>\
**Category:** rubyonrails-talk\
**Created:** [August 30, 2008, 8:50pm UTC](https://discuss.rubyonrails.org/t/plugin-best-practices/33818 "2008-08-30T20:50:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snacktime](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@snacktime](https://discuss.rubyonrails.org/u/snacktime)\
**Post date:** [August 30, 2008, 8:50pm UTC](https://discuss.rubyonrails.org/t/plugin-best-practices/33818/1 "2008-08-30T20:50:35Z")

</div>

I've created plugins by using generators and by just creating the application directory structure in the plugin itself and putting the models, views,etc in the plugin. With the exception of migrations, I'm hard pressed to see why generators are a better solution. Naming conflicts are possible, but that's easily solved. Thoughts?

Chris

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [August 30, 2008, 9:32pm UTC](https://discuss.rubyonrails.org/t/plugin-best-practices/33818/2 "2008-08-30T21:32:28Z")

</div>

> I've created plugins by using generators and by just creating the application directory structure in the plugin itself and putting the models, views,etc in the plugin. With the exception of migrations, I'm hard pressed to see why generators are a better solution. Naming conflicts are possible, but that's easily solved. Thoughts?

I think ultimately it depends whether you're generating something you  
expect the enduser to extend or customise or whether your plugin is  
essentially a library of code.

Fred
