Project

General

Profile

No route matches /sign-in on /admin

Added by Wahid Lahlou about 13 years ago

Hi,

I have just installed Redmine 1.2.1 on a Mac. Everything went fine. I chose 'fr' went asked to generate configuration data.
I could do most of the things in Redmine but I could not access /admin. I am already logged in with 'admin' but it redirects to /sign-in and says:

No route matches "/sign-in" with {:method=>:get}

Thanks in advance for your answers!

WL


Replies (2)

RE: No route matches /sign-in on /admin - Added by Wahid Lahlou about 13 years ago

I mean when I load default data instead of 'generate configuration data'. Anyway, I chose 'fr', but it does not work either with 'en' (as I was expecting).

RE: No route matches /sign-in on /admin - Added by Wahid Lahlou about 13 years ago

I found the code that generates the top menu where the Administration link can be found:

Redmine::MenuManager.map :top_menu do |menu|
  menu.push :home, :home_path
  menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? }
  menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural
  menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true
  menu.push :help, Redmine::Info.help_url, :last => true
end

As one can see, the Administration link should go to the index action of the admin controller. But it does not! Which is weird. Instead, it goes to /sign-in. This sign-in route cannot be found anywhere in the routes file (there is a signin route only).
When I type /admin/index, it works!
Puzzling!

    (1-2/2)