# Rails 插件生成器

**URL:** https://meta.discourse.org/t/rails-plugin-generator/95907
**Category:** Announcements
**Created:** [2018年八月29日 11:43 UTC](https://meta.discourse.org/t/rails-plugin-generator/95907 "2018-08-29T11:43:01Z")
**Posts on this page:** 1
**Showing post:** 38

<div class="post-metadata">

### Author: ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)
#### Post date: [2019年八月30日 09:58 UTC](https://meta.discourse.org/t/rails-plugin-generator/95907/38 "2019-08-30T09:58:15Z")

</div>

> [@Rails plugins vs discourse plugins - what is the difference?](https://meta.discourse.org/t/rails-plugins-vs-discourse-plugins-what-is-the-difference/127109/):
>
> I want to make a plugin that needs its own tables. So its a good idea to have migration and model generators, because manually copying them from the main app dir will lead to errors and is just not very convenient. So I started making my own generators. I started with the migration generator: I could move on now and do the same for models and controllers. But now I started to read this [Getting Started with Engines — Ruby on Rails Guides](https://guides.rubyonrails.org/engines.html) and now it seems to me that all of this might be a duplic…

我该如何着手处理这个问题？

---

_[View the full topic](https://meta.discourse.org/t/rails-plugin-generator/95907)._
