Re: require_gem is obsolete

Phlip
Sun, 04 Feb 2007 01:58:23 -0000

Phlip wrote:

> phlip@penbird:~/projects$ rails -v
> Rails 1.2.1
> phlip@penbird:~/projects$ rails scratch
> phlip@penbird:~/projects$ cd scratch/
> phlip@penbird:~/projects/scratch$ grep require_gem config/boot.rb
>        require_gem "rails",
"=#{rails_gem.version.version}"
>      require_gem "rails"
>
> The base generator is generating the noisily deprecated version.

Oooh, lookie here:

phlip@penbird:~/projects/scratch$ public/dispatch.rb
./public/../config/boot.rb:29:Warning: require_gem is obsolete.  Use
gem instead.
Status: 400 Bad Request
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:405:in
`to_constant_name'': Anonymous modules ha
ve no name to be referenced by (ArgumentError)
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:215:in
`qualified_name_for''
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:477:in
`const_missing''
        from /usr/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:117:in
`reset_after_dispatch''
        from /usr/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:51:in
`dispatch''
        from public/dispatch.rb:10

A brand-new Rails program has the bug that I''m stuck on, as mentioned
in my other post.

--
  Phlip
  http://c2.com/cgi/wiki?ZeekLand  <-- NOT a blog!!