This project is archived and is in readonly mode.

#5318 ✓invalid
Chris Klein

Rails 3.0.0.rc dumps on linux with ruby1.9.2dev on page request

Reported by Chris Klein | August 6th, 2010 @ 04:03 PM

Hi there,

I am new here. So just in case I apologize for not adhering to certain rules here.

I have installed ruby 1.9.2rc2dev on an ubuntu machine 10.04 and installed rails3.0.0.rc

On a page request the ruby interpreter dumps as follows:

=> Booting WEBrick => Rails 3.0.0.rc application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.rc/lib/action_controller/railtie.rb:54:in block (3 levels) in <class:Railtie>': undefined methodconsider_all_requests_local=' for ActionController::Base:Class (NoMethodError)

from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.rc/lib/action_controller/railtie.rb:54:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.rc/lib/action_controller/railtie.rb:54:in `block (2 levels) in <class:Railtie>'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/lazy_load_hooks.rb:17:in `instance_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/lazy_load_hooks.rb:17:in `execute_hook'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/lazy_load_hooks.rb:24:in `block in run_load_hooks'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/lazy_load_hooks.rb:23:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.rc/lib/active_support/lazy_load_hooks.rb:23:in `run_load_hooks'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.rc/lib/action_controller/base.rb:66:in `<class:Base>'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.rc/lib/action_controller/base.rb:4:in `<module:ActionController>'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.rc/lib/action_controller/base.rb:3:in `<top (required)>'
from /home/nekov/work/enkirails3/rails3/vendor/plugins/make_resourceful/init.rb:3:in `block in <class:Plugin>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/plugin.rb:81:in `eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/plugin.rb:81:in `block in <class:Plugin>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/initializable.rb:25:in `instance_exec'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/initializable.rb:25:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/initializable.rb:50:in `block in run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/initializable.rb:49:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/initializable.rb:49:in `run_initializers'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/application.rb:134:in `initialize!'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/application.rb:77:in `method_missing'
from /home/nekov/work/enkirails3/rails3/config/environment.rb:5:in `<top (required)>'
from /home/nekov/work/enkirails3/rails3/config.ru:3:in `require'
from /home/nekov/work/enkirails3/rails3/config.ru:3:in `block in <main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
from /home/nekov/work/enkirails3/rails3/config.ru:1:in `new'
from /home/nekov/work/enkirails3/rails3/config.ru:1:in `<main>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:35:in `eval'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/builder.rb:35:in `parse_file'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:162:in `app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:248:in `wrapped_app'
from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/server.rb:213:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/commands/server.rb:65:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/commands.rb:30:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/commands.rb:27:in `tap'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.rc/lib/rails/commands.rb:27:in `<top (required)>'
from script/rails:10:in `require'
from script/rails:10:in `<main>'

A web search did not render any results. So I am trying here.

Regards,

Chris.

Comments and changes to this ticket

  • Rohit Arondekar

    Rohit Arondekar August 8th, 2010 @ 02:57 AM

    • Importance changed from “” to “Low”

    Cannot reproduce on:

    ruby 1.9.2dev (2010-07-11 revision 28618) [x86_64-linux]
    Rails 3.0.0.rc or 3-0-stable branch
    Ubuntu 10.04

    If I'm correct, you used 1.9.2-rc2, in that case this should work. If you tried with 1.9.2-head then there might be problems in there, but since it's in active development such problems are likely. But rc1 and rc2 most definitely work. With regards to rc2 I've only tried simple things so are there any particular steps to reproduce this failure?

  • Chris Klein

    Chris Klein August 8th, 2010 @ 06:36 AM

    This happened in my case if you specified

    config.action_controller.consider_all_requests_local = true

    in the config/environments/development.rb.

  • Chris Klein

    Chris Klein August 8th, 2010 @ 06:37 AM

    ruby -v returned:

    ruby 1.9.2dev (2010-07-11 revision 28618) [i686-linux]

  • Rohit Arondekar

    Rohit Arondekar August 8th, 2010 @ 07:01 AM

    Well first of all this had nothing to do with Ubuntu or 1.9.2-rc2 ( thankfully :) ).

    In the config/environments/development.rb the option is already set as follows:

      config.consider_all_requests_local       = true
    

    Can you confirm that this option works as expected? So that I can close the ticket knowing that the option works. :)

  • Chris Klein

    Chris Klein August 8th, 2010 @ 07:22 AM

    Hi there,

    thanks for the quick response at least when changing to config.consider_all_requests_local = true
    it does not dump at this position any more.

    (Background I was trying to get the enki blog engine (rails3) branch to work under linux but were not yet successful)

    So I guess you can close the ticket.

  • Rohit Arondekar

    Rohit Arondekar August 8th, 2010 @ 11:59 AM

    • State changed from “new” to “invalid”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages