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:
http://web.elctech.com/2009/04/26/solved-localjumperror-no-block-given/
I have many more errors which I assume that it might be the ruby
version because the app is live and running smoothly.
Thank you
-- 
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.
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
Any ideas what it might been wrong?
-- 
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.
On Thu, Jun 10, 2010 at 5:25 PM, Yiannis <istoselidas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> initializer.rb:271:in `require_frameworks'': no such file to load -- > openssl (RuntimeError) > > Any ideas what it might been wrong?Install your missing ruby openssl libraries. -- Greg Donald destiney.com | gregdonald.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.
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/ . On 11 Ιούν, 00:36, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Thu, Jun 10, 2010 at 5:25 PM, Yiannis <istoseli...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > initializer.rb:271:in `require_frameworks'': no such file to load -- > > openssl (RuntimeError) > > > Any ideas what it might been wrong? > > Install your missing ruby openssl libraries. > > -- > Greg Donald > destiney.com | gregdonald.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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
install ree, and remove all your problems Ivan Nastyukhin dieinzige-BUHhN+a2lJ4@public.gmane.org On Jun 11, 2010, at 2:31 PM, Yiannis wrote:> 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/ . > > > > On 11 Ιούν, 00:36, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Thu, Jun 10, 2010 at 5:25 PM, Yiannis <istoseli...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> initializer.rb:271:in `require_frameworks'': no such file to load -- >>> openssl (RuntimeError) >> >>> Any ideas what it might been wrong? >> >> Install your missing ruby openssl libraries. >> >> -- >> Greg Donald >> destiney.com | gregdonald.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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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.