# How can I convert the next line in Rails 2.3.4 to Rails 2.0

**URL:** <https://www.ruby-forum.com/t/how-can-i-convert-the-next-line-in-rails-2-3-4-to-rails-2-0/185757>\
**Category:** Rails\
**Created:** [March 25, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/how-can-i-convert-the-next-line-in-rails-2-3-4-to-rails-2-0/185757 "2010-03-25T17:30:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgegetafe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eada6e/32.png) [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Post date:** [March 25, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/how-can-i-convert-the-next-line-in-rails-2-3-4-to-rails-2-0/185757/1 "2010-03-25T17:30:30Z")

</div>

How can I convert the next line in Rails 2.3.4 to Rails 2.0.2?

config.gem ‘panztel-actionwebservice’, :lib =\> ‘actionwebservice’

I have this in my environment.rb file:  
#------------------------------------------------------------------------------  
RAILS\_GEM\_VERSION = ‘2.0.2’ unless defined? RAILS\_GEM\_VERSION

Rails::Initializer.run do |config|  
…

# to add the gem to the conf/environment.rb so that is knows the

correct actionwebservice gem  
config.gem ‘panztel-actionwebservice’, :lib =\> ‘actionwebservice’  
…  
end  
#-----------------------------------------------------------------------------

I’m doing a web service, pero I need to do it with RAILS\_GEM\_VERSION =  
‘2.0.2’

If I try to run the service, it shows the next:

=\> Booting WEBrick…  
C:/Users/usuario/Desktop/Servidor/pruebas/config/environment.rb:21:  
private method `gem' called for #<Rails::Configuration:0x5e4dc98> (NoMethodError) from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:47:in`run’  
from  
C:/Users/usuario/Desktop/Servidor/JescoSeguros\_pruebas/config/environment.rb:16  
from  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:496:in  
`require' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in`new\_constants\_in’  
from  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:496:in  
`require' from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:59 from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`gem\_original\_require’  
from  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in`require’  
from  
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in`require’  
from  
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39  
from  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from script/server:3

Does anyone know how?

I’m using panztel-actionwebservice-2.3.5 and actionwebservice-1.2.6

Thanks and regards.
