# 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:** 25

<div class="post-metadata">

### Author: ![permacultureProgram](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/permacultureprogram/32/108924_2.png) [@permacultureProgram](https://meta.discourse.org/u/permacultureProgram)
#### Post date: [2019年三月16日 22:03 UTC](https://meta.discourse.org/t/rails-plugin-generator/95907/25 "2019-03-16T22:03:08Z")

</div>

There seems to be a mismatch between the plugin generator and [this post](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1/30515). Specifically, the **Beginner’s Guide** suggests to create the javascript initializer with the following directory and naming structure:

```plaintext
plugins/basic-plugin/assets/javascripts/discourse/initializers/alert.js.es6

```

However, the plugin creates the javascript initializer at

```plaintext
plugins/discourse-racoon/assets/javascripts/initializers/discourse-racoon.es6

```

Personally, I was having issues with the javascript loading after using this plugin until I changed the directory and naming structure to match the **Beginner’s guide**. Should the package be updated?

---

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