# Issues generating models for plugin

**URL:** https://meta.discourse.org/t/issues-generating-models-for-plugin/233752
**Category:** Development
**Created:** [July 23, 2022, 4:29pm UTC](https://meta.discourse.org/t/issues-generating-models-for-plugin/233752 "2022-07-23T16:29:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SilK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/silk/32/268124_2.png) [@SilK](https://meta.discourse.org/u/SilK)
#### Post date: [July 23, 2022, 4:29pm UTC](https://meta.discourse.org/t/issues-generating-models-for-plugin/233752/1 "2022-07-23T16:29:01Z")

</div>

Hi there,

Sorry if this isn’t categorized properly - it’s my first time here.

I’m having issues generating models for my custom plugin. I’m working off of the [discourse-plugin-skeleton](https://github.com/discourse/discourse-plugin-skeleton). This is what occurs when I attempt to generate a model:

```plaintext
$ rails g model Example
Usage:
  rails new APP_PATH [options]

Options:
...

```

I’ve tried creating a new rails new project via the command mentioned in the output above, but it adds a lot of clutter which I do not see in projects such as discourse-data-explorer (and I’m not sure if it will have adverse effects).

My current setup is I have a local development install of Discourse, and in the plugins directory of that Discourse install I have a symbolic link to my plugin. I’ve tested this same setup with the bare discourse-plugin-skeleton and I get the same issue with not being able to generate using `rails`.

Any input on how I can get this working is much appreciated. 🙂

---

<div class="post-metadata">

### Author: ![SilK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/silk/32/268124_2.png) [@SilK](https://meta.discourse.org/u/SilK)
#### Post date: [July 26, 2022, 12:27am UTC](https://meta.discourse.org/t/issues-generating-models-for-plugin/233752/2 "2022-07-26T00:27:23Z")

</div>

Bumping this - hopefully someone has some input.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 26, 2022, 2:55pm UTC](https://meta.discourse.org/t/issues-generating-models-for-plugin/233752/3 "2022-07-26T14:55:34Z")

</div>

Not sure any of the Rails generators are expected to work in Discourse plugins, as plugins by themselves are not Rails apps. AFAIK we create the plugin files manually as needed.
