Jorge alejandro Mendoza torres
2010-Mar-25 16:30 UTC
How can I convert the next line in Rails 2.3.4 to Rails 2.0.
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.
--
Posted via http://www.ruby-forum.com/.
--
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.