small medium large xlarge

Distorted_pragsmall
28 Feb 2013, 02:12
Enrique Sánchez (17 posts)

I had just started the book (was on Part 2) when I got the email notification that a new version of the book was available.

Should I upgrade to rails 4 before continuing? I notice some differences in the example code…

Thanks

Samr_small_pragsmall
28 Feb 2013, 12:32
Sam Ruby (584 posts)

Whether you want to learn Rails 3.2 or Rails 4 is entirely up to you.

How far ar you in Part 2? If you upgrade to 4.0.0.beta1 and are in Part 2, start over with chapter 6. The examples are indeed different.

Distorted_pragsmall
28 Feb 2013, 16:07
Enrique Sánchez (17 posts)

Thank you for the quick response Sam.

I think I’ll upgrade to Rails 4 and start over chapter 6.

Could you just confirm to me how should I upgrade? Is it really this simple?:

“To upgrade, simply update the version number in the Gemfile that is in the root directory of your application, and run bundle install.”

I just change ‘3.2.8’ for ‘4.0.0.beta1’?

Samr_small_pragsmall
28 Feb 2013, 16:18
Sam Ruby (584 posts)

I’d suggest rm -rf depot (or rd /s /q depot for Windows users) followed by:

gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc

Reasoning: while Rails is intended to be fully backwards compatible (for example, it will run tests in their old location), the book describes where things will be put when generated from scratch using 4.0.

Distorted_pragsmall
02 Mar 2013, 23:50
Enrique Sánchez (17 posts)

Hi Sam,

I’m having problems after the upgrade :(

When I create the new depot app I get a bunch of errors right after it tries to run the bundle install:

     run  bundle install /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `block in connect'
from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/timeout.rb:51:in `timeout'
from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:917:in `connect'
from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:861:in `do_start'
from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:856:in `start'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:628:in `start'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:570:in `connection_for'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/vendor/net/http/persistent.rb:930:in `request'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/fetcher.rb:195:in `fetch'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/fetcher.rb:169:in `use_api'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `block in remote_specs'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `select'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:223:in `remote_specs'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:162:in `fetch_specs'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/source/rubygems.rb:66:in `specs'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/definition.rb:192:in `block (2 levels) in index'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/definition.rb:189:in `each'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/definition.rb:189:in `block in index'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/index.rb:9:in `build'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/definition.rb:185:in `index'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/definition.rb:179:in `resolve'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/definition.rb:114:in `specs'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/definition.rb:109:in `resolve_remotely!'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/installer.rb:83:in `run'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/installer.rb:14:in `install'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/cli.rb:247:in `install'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/vendor/thor/task.rb:27:in `run'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/vendor/thor.rb:344:in `dispatch'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/vendor/thor/base.rb:434:in `start'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/bin/bundle:20:in `block in <main>'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.0/bin/bundle:20:in `<main>'
    Unfortunately, a fatal error has occurred. Please see the Bundler
    troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!

I went in and tried to find troubleshooting info in the bundler documentation but couldn’t find anything. I even uninstalled and reinstalled everything but had no luck.

Have you seen this error before? Any tips?

Thanks

Samr_small_pragsmall
03 Mar 2013, 03:40
Sam Ruby (584 posts)

Does this help?

http://railsapps.github.com/openssl-certificate-verify-failed.html

Distorted_pragsmall
05 Mar 2013, 22:34
Enrique Sánchez (17 posts)

Thank you Sam, that article helped me find the solution. Apparently I had an outdated OpenSSL certificate.

  You must be logged in to comment