Well I am having a really weird problem, I am working on a project of
another team and they were using ruby 1.8.7. I has installed ruby
1.8.6 so I've got many ruby errors and I couldn't figures out why.
Finally I found that the reason was the version of the ruby, I have
installed RVM and I set 1.8.7 version as default and I ran the app but
I am still getting those errors.
Can I explicitly setup the ruby version which I want my rails app to
use? My final solution is to delete ruby 1.8.6 version...
Just for the record, one of the errors I got was that:
select_tag "hour", options_for_select(24.times.collect {|i| i}
and here I found the answer:
I have many more errors which I assume that it might be the ruby
version because the app is live and running smoothly.
Well the problem was that I ran the command as a root (sudo script/
server) so the ruby 1.8.6 was used. When I am running for the version
1.8.7 I am getting the following errors:
/home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/lib/rails/
gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is
deprecated and will be removed on or after August 2010. Use
#requirement
/home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/lib/
initializer.rb:271:in `require_frameworks': no such file to load --
openssl (RuntimeError)
from /home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/
lib/initializer.rb:134:in `process'
from /home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/
lib/initializer.rb:113:in `send'
from /home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/
lib/initializer.rb:113:in `run'
from /var/www/rails/vmobile/config/environment.rb:12
from /home/nikos/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/
site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /home/nikos/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/
site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/
activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
`require'
from /home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/
activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from /home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/
activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
`require'
from /home/nikos/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/
lib/commands/server.rb:84
from /home/nikos/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/
site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /home/nikos/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/
site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3
Thank you for your answer but can you be a little more specific? I
have ubuntu and I have already installed openssl libraries but it
doesn't work. I found some guides which says to go at \gems\ruby-1.8.7-
p249\ext\openssl but I didn't have the folder /ext/openssl/ .