{"id":7319,"date":"2014-06-07T02:24:54","date_gmt":"2014-06-07T02:24:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/rails-update-3-2-5-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:24:54","modified_gmt":"2014-06-07T02:24:54","slug":"rails-update-3-2-5-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/rails-update-3-2-5-collection-of-common-programming-errors\/","title":{"rendered":"rails update 3.2.5-Collection of common programming errors"},"content":{"rendered":"<p>for our redmine-installation (=&gt;tool for project planing, ticketing etc.) we installed ruby on our server, which worked fine &#8230; But now we need a rails update (Rails 3.2.3) for a redmine update and so the troubles began:<\/p>\n<p>I did the following:<\/p>\n<p>1.) installing ruby 1.9.3<\/p>\n<pre><code>root@information:~#  rvm install 1.9.3\n\nInstalling Ruby from source to: \/usr\/local\/rvm\/rubies\/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...\nruby-1.9.3-p194 - #fetching \nruby-1.9.3-p194 - #extracted to \/usr\/local\/rvm\/src\/ruby-1.9.3-p194 (already extracted)\nruby-1.9.3-p194 - #configuring\nruby-1.9.3-p194 - #compiling \nruby-1.9.3-p194 - #installing \nRemoving old Rubygems files...\nInstalling rubygems-1.8.24 for ruby-1.9.3-p194 ...\nInstallation of rubygems completed successfully.\nruby-1.9.3-p194 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).\nruby-1.9.3-p194 - #importing default gemsets (\/usr\/local\/rvm\/gemsets\/)\nInstall of ruby-1.9.3-p194 - #complete \nroot@information:~# ruby -v\nruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]\nroot@information:~#\nroot@information:\/var\/www\/redmine# rvm docs generate\nCurrently 'rvm docs ...' does not work with non-rvm rubies.\nroot@information:\/var\/www\/redmine# \n<\/code><\/pre>\n<p>2.) updating gem<\/p>\n<pre><code>root@information:\/var\/www\/redmine# gem update\n\nUpdating installed gems\nUpdating actionmailer\nSuccessfully installed i18n-0.6.0\nSuccessfully installed multi_json-1.3.6\nSuccessfully installed activesupport-3.2.5\nSuccessfully installed builder-3.0.0\nSuccessfully installed activemodel-3.2.5\nSuccessfully installed rack-1.4.1\nSuccessfully installed rack-cache-1.2\nSuccessfully installed rack-test-0.6.1\nSuccessfully installed journey-1.0.3\nSuccessfully installed hike-1.2.1\nSuccessfully installed tilt-1.3.3\nSuccessfully installed sprockets-2.1.3\nSuccessfully installed erubis-2.7.0\nSuccessfully installed actionpack-3.2.5\nSuccessfully installed mime-types-1.18\nSuccessfully installed polyglot-0.3.3\nSuccessfully installed treetop-1.4.10\nSuccessfully installed mail-2.4.4\nSuccessfully installed actionmailer-3.2.5\nUpdating activerecord\nSuccessfully installed arel-3.0.2\nSuccessfully installed activerecord-3.2.5\nUpdating activeresource\nSuccessfully installed activeresource-3.2.5\nUpdating bundler\nSuccessfully installed bundler-1.1.4\nUpdating fastercsv\nSuccessfully installed fastercsv-1.5.5\nUpdating rails\nBuilding native extensions.  This could take a while...\n\nDepending on your version of ruby, you may need to install ruby rdoc\/ri data:\n\n= 1.9.2 : nothing to do! Yay!\n\nSuccessfully installed rack-ssl-1.3.2\nSuccessfully installed thor-0.15.2\nSuccessfully installed json-1.7.3\nSuccessfully installed rdoc-3.12\nSuccessfully installed railties-3.2.5\nSuccessfully installed rails-3.2.5\n\nGems updated: i18n, multi_json, activesupport, builder, activemodel, rack, rack-cache, rack-test, journey, hike, tilt, sprockets, erubis, actionpack, mime-types, polyglot, treetop, mail, actionmailer, arel, activerecord, activeresource, bundler, fastercsv, rack-ssl, thor, json, rdoc, railties, rails\n\n\nroot@information:\/var\/www\/redmine#\n<\/code><\/pre>\n<p>3.) trying to update rails<\/p>\n<pre><code>root@information:\/var\/www\/redmine# gem install rails --version '~&gt; 3.2.0'\n\nSuccessfully installed rails-3.2.5\n\n1 gem installed\n\nInstalling ri documentation for rails-3.2.5...\nInstalling RDoc documentation for rails-3.2.5...\nroot@information:\/var\/www\/redmine# rails -v\n\nRails 2.3.5\n\nroot@information:\/var\/www\/redmine# \n<\/code><\/pre>\n<p>My problem is, that redmine 2.0.1 had problems with ruby 1.9.3 and so tried to downgrade ruby by e.g. &#8220;rvm uninstall 1.9.3&#8221; and tried to reinstall ruby 1.8.6&#8230;<\/p>\n<p>After all I just upgraded to ruby 1.9.3 but failed to upgrade to rails 3.2.5&#8230;.<\/p>\n<p>Can you help me here ?<\/p>\n<p>I&#8217;m new to ruby. Did I forget installation steps?. Thanks in advance for your help? Cheers,<\/p>\n<p>Ansgar<\/p>\n","protected":false},"excerpt":{"rendered":"<p>for our redmine-installation (=&gt;tool for project planing, ticketing etc.) we installed ruby on our server, which worked fine &#8230; But now we need a rails update (Rails 3.2.3) for a redmine update and so the troubles began: I did the following: 1.) installing ruby 1.9.3 root@information:~# rvm install 1.9.3 Installing Ruby from source to: \/usr\/local\/rvm\/rubies\/ruby-1.9.3-p194, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7319","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7319"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7319\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}