Open kevinff opened 12 years ago
OK now i triggered this error:
An error occurred while loading the routes definition of redmine_http_auth plugin (/**/plugins/redmine_http_auth/config/routes.rb): You are using the old router DSL which has been removed in Rails 3.1. Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/.
And that page says a lot. This one too: http://www.redmine.org/boards/3/topics/31445
Tried:
RedmineApp::Application.routes.draw do match 'httpauth-login', :to => 'welcome#index', :via => [:get, :post]
match 'httpauth-selfregister/:action', :to => 'registration#autoregistration_form', :via => [:get, :post] end
But doesn't work, maybe because i commented the require of auth-patch, don't know how to make it work. Sorry first time using ruby, rails and redmine :>
Ok quick hack i put the helper and the lib in the redmine lib folder, now i can include the auth patch.
Fixed another problem with my apache config, and now works! Dirty but works, i forked it, hope it helps somebody until one wants to make this more clean :)
@kevinff can you post your entire solution? I'm trying to get this working for redmine2 as well and not having much luck.
Thanks.
Sorry Matt, i didn't see your answer.
In my profile i forked it and applied some hacks. I'm not a ruby coder so it's purely a hack.
There's another issue where somebody published a patch: https://github.com/AdamLantos/redmine_http_auth/issues/18
It's certainly better than mine, if it doesn't work, try mine :)
Hello!
I tried to install your plugin with Redmine 2, and it's incompatible :(
I had to comment some "require" in init.rb and also in routes.rb: replace ActionController::Routing::Routes.draw do |map| with RedmineApp::Application.routes.draw do
However there isn't any "map" for the routes, see also http://www.redmine.org/boards/2/topics/31460
And i'm quite stuck :(
Any idea?
Thanks!