I am creating my first plugin. Here’s the outline on what it should do:
It should allow me to get the custom_groups of a user. The reason there is some handlebars in the plugin is because I eventually want to change the state of nav-bar depending on a user’s custom_groups.
The plugin should access the Users Controller, get their custom groups with:
Here is the plugin: GitHub - stevenpslade/discourse-data-menu-item
As aforementioned, this is my first one and I am having trouble even testing what results I’m getting from the ajax call as well as if the code in the controller is correct. I’m used to being in a pure rails app where I can use byebug’s and binding.pry’s.
If a more experienced plugin dev could give this a once over and maybe give me some advice, I would really appreciate that. I hope to continue making Discourse plugins after I get past this first one!