# 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:** 1\
**Showing post:** 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. 🙂

---

_[View the full topic](https://meta.discourse.org/t/issues-generating-models-for-plugin/233752)._
