ivoryivy
2010-Feb-24 17:20 UTC
`<top (required)>'': undefined method `default_external='' for Encoding:Class (NoMethodError)
Why would I be getting these errors when running any of the commands in rails (rails console/rake/etc)? $ rails server /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails.rb:25:in `<top (required)>'': undefined method `default_external='' for Encoding:Class (NoMethodError) from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/all.rb: 1:in `require'' from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/all.rb: 1:in `<top (required)>'' from /home/emily/Work/echantillons/config/application.rb:3:in `require'' from /home/emily/Work/echantillons/config/application.rb:3:in `<top (required)>'' from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/ commands.rb:36:in `require'' from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/ commands.rb:36:in `<top (required)>'' from /home/emily/Work/echantillons/script/rails:10:in `require'' from /home/emily/Work/echantillons/script/rails:10:in `<main>'' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-Feb-24 20:41 UTC
Re: `<top (required)>'': undefined method `default_external='' for Encoding:Class (NoMethodError)
On Feb 24, 5:20 pm, ivoryivy <emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Why would I be getting these errors when running any of the commands > in rails (rails console/rake/etc)? >Looks like you are running ruby 1.9.0, 1.9.0 was a somewhat unstable development release of ruby. The first production ready release of the 1.9 series was 1.9.1 and you should be using that if you want to run ruby 1.9 Fred> $ rails server > /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails.rb:25:in `<top > (required)>'': undefined method `default_external='' for Encoding:Class > (NoMethodError) > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/all.rb: > 1:in `require'' > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/all.rb: > 1:in `<top (required)>'' > from /home/emily/Work/echantillons/config/application.rb:3:in > `require'' > from /home/emily/Work/echantillons/config/application.rb:3:in `<top > (required)>'' > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/ > commands.rb:36:in `require'' > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/ > commands.rb:36:in `<top (required)>'' > from /home/emily/Work/echantillons/script/rails:10:in `require'' > from /home/emily/Work/echantillons/script/rails:10:in `<main>''-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
ES
2010-Feb-25 16:58 UTC
Re: `<top (required)>'': undefined method `default_external='' for Encoding:Class (NoMethodError)
I got everything to work in downgrading to Rails 2.3.5 (using beta means there isn''t much documentation out there and it was quite inconvenient) and upgrading to Ruby 1.9.1. Thanks! On Feb 24, 9:41 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Feb 24, 5:20 pm, ivoryivy <emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Why would I be getting these errors when running any of the commands > > in rails (rails console/rake/etc)? > > Looks like you are running ruby 1.9.0, 1.9.0 was a somewhat unstable > development release of ruby. The first production ready release of the > 1.9 series was 1.9.1 and you should be using that if you want to run > ruby 1.9 > > Fred > > > $ rails server > > /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails.rb:25:in `<top > > (required)>'': undefined method `default_external='' for Encoding:Class > > (NoMethodError) > > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/all.rb: > > 1:in `require'' > > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/all.rb: > > 1:in `<top (required)>'' > > from /home/emily/Work/echantillons/config/application.rb:3:in > > `require'' > > from /home/emily/Work/echantillons/config/application.rb:3:in `<top > > (required)>'' > > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/ > > commands.rb:36:in `require'' > > from /var/lib/gems/1.9.0/gems/railties-3.0.0.beta/lib/rails/ > > commands.rb:36:in `<top (required)>'' > > from /home/emily/Work/echantillons/script/rails:10:in `require'' > > from /home/emily/Work/echantillons/script/rails:10:in `<main>''-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.