LoginEngine breaks default routing?

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 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

  6. C:/Dev/workspace/LoginEngineTest> ruby script/plugin install
    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

    Engines.start :login

  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

    ActionController::RoutingError (Recognition failed for
    “/rails/info/properties”):

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:inservice’
C:/webdev/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in
run' C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:173:instart_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:instart’
C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:92:in start' C:/webdev/ruby/lib/ruby/1.8/webrick/server.rb:23:instart’
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs