I followed steps on Rails guides on engines<http://guides.rubyonrails.org/engines.html> and
it faileds when mounting the engine in unicorn Rails application:

unicorn rails s
=> Booting WEBrick
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:10:in
`rescue in execute_if_updated':
Rails::Application::RoutesReloader#execute_if_updated delegated to
updater.execute_if_updated, but updater is nil:
#<Rails::Application::RoutesReloader:0x007fc39aff04f0
@paths=["/Users/scambour/workspace/unicorn/config/routes.rb",
"/Users/scambour/workspace/blorgh/config/routes.rb"],
@route_sets=[#<ActionDispatch::Routing::RouteSet:0x007fc39ac008b8>,
#<ActionDispatch::Routing::RouteSet:0x007fc39c092c18>]> (RuntimeError)
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:6:in
`execute_if_updated'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/finisher.rb:69:in
`block in <module:Finisher>'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:30:in
`instance_exec'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:30:in
`run'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:55:in
`block in run_initializers'
from
/Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in
`block in tsort_each'
from
/Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in
`block (2 levels) in each_strongly_connected_component'
from
/Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in
`each_strongly_connected_component_from'
from
/Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in
`block in each_strongly_connected_component'
from
/Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in
`each'
from
/Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in
`each_strongly_connected_component'
from
/Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in
`tsort_each'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:54:in
`run_initializers'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application.rb:215:in
`initialize!'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in
`method_missing'
from /Users/scambour/workspace/unicorn/config/environment.rb:5:in `<top
(required)>'
from /Users/scambour/workspace/unicorn/config.ru:3:in `require'
from /Users/scambour/workspace/unicorn/config.ru:3:in `block in <main>'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`instance_eval'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`initialize'
from /Users/scambour/workspace/unicorn/config.ru:in `new'
from /Users/scambour/workspace/unicorn/config.ru:in `<main>'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in
`eval'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in
`new_from_string'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:40:in
`parse_file'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:277:in
`build_app_and_options_from_config'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:199:in
`app'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in
`app'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:314:in
`wrapped_app'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in
`start'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:78:in
`block in <top (required)>'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in
`tap'
from
/Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in
`<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

Just after adding the path to the blorgh engin into the Gemfile:

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
gem 'blorgh', path: "../blorgh"
....

running 'rails s' failed with the above error.

Any idea what is going wrong here ?
I'm on OS X 10.8.5
Rails 4.0.0
Ruby 2.0.0p247

Thanks

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e6aa843-160f-48fe-b07a-ea209144393b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Javix at Sep 28, 2013 at 8:38 pm
    It is fixed, I just had a typo in engine route. :).
    On Saturday, September 28, 2013 10:14:26 PM UTC+2, Javix wrote:

    I followed steps on Rails guides on engines<http://guides.rubyonrails.org/engines.html> and
    it faileds when mounting the engine in unicorn Rails application:

    unicorn rails s
    => Booting WEBrick
    => Rails 4.0.0 application starting in development on http://0.0.0.0:3000
    => Run `rails server -h` for more startup options
    => Ctrl-C to shutdown server
    Exiting
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:10:in
    `rescue in execute_if_updated':
    Rails::Application::RoutesReloader#execute_if_updated delegated to
    updater.execute_if_updated, but updater is nil:
    #<Rails::Application::RoutesReloader:0x007fc39aff04f0
    @paths=["/Users/scambour/workspace/unicorn/config/routes.rb",
    "/Users/scambour/workspace/blorgh/config/routes.rb"],
    @route_sets=[#<ActionDispatch::Routing::RouteSet:0x007fc39ac008b8>,
    #<ActionDispatch::Routing::RouteSet:0x007fc39c092c18>]> (RuntimeError)
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:6:in
    `execute_if_updated'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/finisher.rb:69:in
    `block in <module:Finisher>'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:30:in
    `instance_exec'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:30:in
    `run'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:55:in
    `block in run_initializers'
    from
    /Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in
    `block in tsort_each'
    from
    /Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in
    `block (2 levels) in each_strongly_connected_component'
    from
    /Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in
    `each_strongly_connected_component_from'
    from
    /Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in
    `block in each_strongly_connected_component'
    from
    /Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in
    `each'
    from
    /Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in
    `each_strongly_connected_component'
    from
    /Users/scambour/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in
    `tsort_each'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/initializable.rb:54:in
    `run_initializers'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application.rb:215:in
    `initialize!'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in
    `method_missing'
    from /Users/scambour/workspace/unicorn/config/environment.rb:5:in `<top
    (required)>'
    from /Users/scambour/workspace/unicorn/config.ru:3:in `require'
    from /Users/scambour/workspace/unicorn/config.ru:3:in `block in <main>'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in
    `instance_eval'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in
    `initialize'
    from /Users/scambour/workspace/unicorn/config.ru:in `new'
    from /Users/scambour/workspace/unicorn/config.ru:in `<main>'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in
    `eval'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:49:in
    `new_from_string'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:40:in
    `parse_file'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:277:in
    `build_app_and_options_from_config'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:199:in
    `app'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in
    `app'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/server.rb:314:in
    `wrapped_app'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in
    `start'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:78:in
    `block in <top (required)>'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in
    `tap'
    from
    /Users/scambour/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in
    `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

    Just after adding the path to the blorgh engin into the Gemfile:

    source 'https://rubygems.org'

    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
    gem 'rails', '4.0.0'
    gem 'blorgh', path: "../blorgh"
    ....

    running 'rails s' failed with the above error.

    Any idea what is going wrong here ?
    I'm on OS X 10.8.5
    Rails 4.0.0
    Ruby 2.0.0p247

    Thanks
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/07538e89-42dc-41c8-847f-1ade8e5b370d%40googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedSep 28, '13 at 8:14p
activeSep 28, '13 at 8:38p
posts2
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Javix: 2 posts

People

Translate

site design / logo © 2022 Grokbase