# LoginEngine breaks default routing?

**URL:** <https://www.ruby-forum.com/t/loginengine-breaks-default-routing/76754>\
**Category:** Engines Development\
**Created:** [November 20, 2006, 10:28pm UTC](https://www.ruby-forum.com/t/loginengine-breaks-default-routing/76754 "2006-11-20T22:28:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brent\_Sordyl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@Brent\_Sordyl](https://www.ruby-forum.com/u/Brent_Sordyl)\
**Post date:** [November 20, 2006, 10:28pm UTC](https://www.ruby-forum.com/t/loginengine-breaks-default-routing/76754/1 "2006-11-20T22:28:20Z")

</div>

Can anyone help me with this? I sent it to the engine-users mailing  
list yesterday and didn’t receive any replies.

Reviewing the boards and bug lists it doesn’t seem like anyone has  
encountered this problem so I was hoping someone could help me out.  
When I add the login engine to my Rails project it seems to break some  
of the routing. The easist thing to reproduce is that at  
[http://localhost:3000/index.html](http://localhost:3000/index.html) when I click ‘About your application’s  
environment’ I get a Routing Error rather than the environment info.  
Please see my reproduction steps below, I hope this is a small issue…

thanks,  
-Brent

1. Create new rails project LoginEngineTest

2. Start on webrick server

3. View index.html at localhost:3000

4. Click ‘About your application’s environment’  
Ruby version 1.8.4 (i386-mswin32)  
RubyGems version 0.9.0  
Rails version 1.1.6  
Active Record version 1.14.4  
Action Pack version 1.12.5  
Action Web Service version 1.1.6  
Action Mailer version 1.2.5  
Active Support version 1.3.1  
Application root C:/Dev/workspace/LoginEngineTest  
Environment development  
Database adapter mysql

5. C:/Dev/workspace/LoginEngineTest\> ruby script/plugin install  
[http://svn.rails-engines.org/plugins/engines](http://svn.rails-engines.org/plugins/engines)

6. C:/Dev/workspace/LoginEngineTest\> ruby script/plugin install  
[http://svn.rails-engines.org/plugins/login\_engine](http://svn.rails-engines.org/plugins/login_engine)

7. create dev database

8. update database.yml to use dev database

9. add to environment.rb  
module LoginEngine  
config :salt, “your-salt-here”  
end

10. edit app/controllers/application.rb file  
require ‘login\_engine’

class ApplicationController \< ActionController::Base  
include LoginEngine  
helper :user  
model :user

```
before_filter :login_required

```

end  
11. edit ApplicationHelper.rb  
module ApplicationHelper  
include LoginEngine  
end  
12. C:/Dev/workspace/LoginEngineTest\> rake engine\_migrate ENGINE=login  
13. Restart webrick server  
14. View index.html at localhost:3000  
15. Click ‘About your application’s environment’

```
Routing Error

Recognition failed for "/rails/info/properties"

```

1. This error occurs in development.log

C:/webdev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_contr  
oller/routing.rb:522:in `recognition\_failed’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_contr  
oller/routing.rb:512:in `recognize!’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:i  
n `dispatch’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick\_server.rb:  
115:in `handle\_dispatch’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick\_server.rb:  
81:in `service' C:/webdev/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’  
C:/webdev/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in  
`run' C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start\_thread’  
C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:162:in  
`start_thread' C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start’  
C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start’  
C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/webrick\_server.rb:  
67:in `dispatch’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/w  
ebrick.rb:59

C:/webdev/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_sup  
port/dependencies.rb:147:in `require’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb  
:30

C:/webdev/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’

C:/webdev/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_sup  
port/dependencies.rb:147:in `require’  
./script/server:3  
-e:4
