{"id":383,"date":"2009-11-17T08:41:13","date_gmt":"2009-11-17T14:41:13","guid":{"rendered":"http:\/\/75.134.27.61:8101\/wordpress\/?p=383"},"modified":"2012-08-14T20:51:18","modified_gmt":"2012-08-15T01:51:18","slug":"ruby-on-rails-gives-no-surprise-in-the-latest-version","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/ruby-on-rails-gives-no-surprise-in-the-latest-version\/","title":{"rendered":"Ruby On Rails gives no &#8220;surprise&#8221; in the latest version"},"content":{"rendered":"<p>I haven&#8217;t upgraded my Ruby On Rails and related Ruby gems for 5 months. One of the reasons is that Rails development team likes to <strong>break the backward compatibility<\/strong>, such as:<\/p>\n<blockquote><p>NameError: uninitialized constant ApplicationController<\/p><\/blockquote>\n<p>To avoid this kind of surprises, I tend to stick with a working, stable version. <\/p>\n<p>Recently, I upgrade the entire Ruby On Rails family(2.3.2 -> 2.3.4), and surprisingly, my Ruby On Rails apps work perfectly fine! One exception is that the Mongrel server behaves a little bit slower than before. One way or the other, we need to use the load balancing technique to host the Rails App anyway. So it really doesn&#8217;t matter.<\/p>\n<p>In case you want to try upgrading your Ruby Gems and other things:<\/p>\n<p><strong>Update the Ruby Gem Engine:<\/strong><\/p>\n<pre>\r\nsudo gem update --system\r\n<\/pre>\n<p><strong>Update other Ruby Gems:<\/strong><\/p>\n<pre>\r\nsudo gem update\r\n<\/pre>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I haven&#8217;t upgraded my Ruby On Rails and related Ruby gems for 5 months. One of the reasons is that Rails development team likes to break the backward compatibility, such <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/ruby-on-rails-gives-no-surprise-in-the-latest-version\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[141,52],"tags":[23],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-programming-problems","category-software-engineering","tag-ruby-on-rails"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-6b","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":565,"url":"https:\/\/icesquare.com\/wordpress\/enough-rails-surprise-why-i-leave-ruby-on-rails\/","url_meta":{"origin":383,"position":0},"title":"Enough &#8220;Rails Surprise&#8221;! Goodbye Ruby On Rails.","author":"Derrick","date":"January 12, 2010","format":false,"excerpt":"Couple months ago, I published an article about Ruby On Rails. I was wrong. The idea of Ruby On Rails is really good. You can create a very simple database-driven web application (i.e., User can add, browse, remove and search records) in less than half an hour. There is no\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":98,"url":"https:\/\/icesquare.com\/wordpress\/thoughts-on-quality-assurance-on-software-testing\/","url_meta":{"origin":383,"position":1},"title":"Thoughts on Quality Assurance on Software Testing","author":"Derrick","date":"May 22, 2009","format":false,"excerpt":"Recently I developed several projects using Ruby on Rails.\u00a0 One of the cool features of it is the built-in test tools. With this amazing tool, I can test my web page such as data validation in few seconds by myself. It reminds me the time how a software was tested\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":257,"url":"https:\/\/icesquare.com\/wordpress\/interviewing-a-software-engineer-developer-programmer\/","url_meta":{"origin":383,"position":2},"title":"Interviewing a software engineer \/ developer \/ programmer","author":"Derrick","date":"August 20, 2009","format":false,"excerpt":"I am going to have a face-to-face interview with a candidate of a PHP programmer position this afternoon. I was told to prepare some technical questions for the interview. If a candidate earns an face-to-face interview opportunity, that means his resume should have a very good match to the position\u2026","rel":"","context":"In &quot;Business&quot;","block_context":{"text":"Business","link":"https:\/\/icesquare.com\/wordpress\/category\/business\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":237,"url":"https:\/\/icesquare.com\/wordpress\/does-most-popular-imply-the-best\/","url_meta":{"origin":383,"position":3},"title":"Does the most popular imply the best?","author":"Derrick","date":"August 19, 2009","format":false,"excerpt":"Today, I had a discussion with my co-worker on the best languages for web applications. While I argued that Perl, and Ruby performs better than PHP, my co-worker had an opposite opinion. He believed that PHP is the best language overall because it is widely used. It brings me to\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1028,"url":"https:\/\/icesquare.com\/wordpress\/mysql-starting-mysql-error-the-server-quit-without-updating-pid-file\/","url_meta":{"origin":383,"position":4},"title":"MySQL: Starting MySQL&#8230;.. ERROR! The server quit without updating PID file","author":"Derrick","date":"November 12, 2010","format":false,"excerpt":"This step-by-step guide is mainly for FreeBSD, however the idea is the same for Linux. Every once a while, when I update my FreeBSD box, the system likes to shutdown my MySQL server. Therefore, I need to start it again after the update is done. Unfortunately, the upgrade process is\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1591,"url":"https:\/\/icesquare.com\/wordpress\/the-develautomake110-port-has-been-deleted-no-longer-required-by-any-port-aborting-update\/","url_meta":{"origin":383,"position":5},"title":"The devel\/automake110 port has been deleted: No longer required by any port&#8230;Aborting update","author":"Derrick","date":"September 21, 2011","format":false,"excerpt":"My FreeBSD box must be sick today. For some reasons, when I ran the portsnap command (i.e., portsnap fetch update), it removed the entire port directory (i.e., rm \/usr\/ports -Rf). Therefore, I decided to build the entire port tree: sudo su cd \/var\/db\/portsnap rm -Rf * portsnap fetch extract I\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":18,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":2925,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/383\/revisions\/2925"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}