user27552065
user27552065

Reputation: 1

Routes.rb doesnt define constant Routes

I am a SysAdmin working Redmine. We are upgrading our system and trying to get the older pluging Redmine_out_of_band_authentication to get an email with with a verification code working.

Before someone says it, yes I know MFA is built into the system now and it works quite handily... as long as you can work in environments where cameras and phones are allowed. This is system is use in a secure environment. I have this to the point where I get the following error:

expected file plugins/redmine_out_of_band_auth/app/config/routes.rb to define constant Routes

The file in question contains:

Rails.application.routes.draw do
  resources :out_of_band_auth do
    resources :out_of_band_auths_controller do
      get :login
      post :login
    end
  end
end

I am assuming it was written before Zeitwerk. Can anyone point out any syntax errors? I have spent WAAY too much time fighting this and I am not a Ruby/Rails developer.

Any help or hints would be greatly appreciated! Also, please dont assume I know what file you just allude to. Please spell it out for me.

I was expecting it to install like all the other plugins and not waste over two weeks fighting it!

Upvotes: 0

Views: 104

Answers (0)

Related Questions