Rails plugin generator

Hi @j.jaffeux

Still trying to learn about Discourse plugins, I went back to this plugin generator today; and tried this in dev environment on macOS, where the app is running fine and I have been doing a lot of Ruby and Rails studies and small plugins, to learn:

# cd /var/Tim/Discourse/plugins
# rails g plugin DiscourseRacoon
# bundle exec 'rails s'

All seems to go well, and the plugin installs fine:

But when I go to the route:

http://localhost:3000/discourse_racoon

It’s not working:

Am I wrong that the plugin routes and the controller should work OOTB after the generate the basic plugin, in this case DiscourseRacoon?

I went to various online references, and they indicated we should check that the route existed; so I checked routes.rb and there are routes defined there; and I also checked discourse_racoon_controller.rb and the controller has an index method (action).

Sorry, I’m still struggling with more interesting plugin dev and Discourse. What I doing wrong? Any suggestion on what is my next step to debug this?

Thanks.

「いいね!」 1