{"id":129,"date":"2011-06-10T22:47:28","date_gmt":"2011-06-10T20:47:28","guid":{"rendered":"http:\/\/demianlabs.com\/lab\/?p=129"},"modified":"2013-08-25T12:46:36","modified_gmt":"2013-08-25T10:46:36","slug":"why-im-not-moving-to-ruby-on-rails-yet","status":"publish","type":"post","link":"https:\/\/demianlabs.com\/lab\/post\/why-im-not-moving-to-ruby-on-rails-yet\/","title":{"rendered":"Why I&#8217;m not moving to Ruby on Rails (yet)"},"content":{"rendered":"<p>When you&#8217;re about to start a new project it&#8217;s the right time to move to something new. Sometimes it&#8217;s a new CSS or Javascript framework, sometimes it&#8217;s a new version control system, in my case it was moving from PHP\/CodeIgniter to Ruby\/Ruby on Rails.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-130\" title=\"CodeIgniter vs Ruby on Rails\" alt=\"CodeIgniter vs Ruby on Rails\" src=\"https:\/\/demianlabs.com\/lab\/wp-content\/uploads\/codeigniter-vs-ruby-on-rails.jpg\" width=\"700\" height=\"200\" srcset=\"https:\/\/demianlabs.com\/lab\/wp-content\/uploads\/codeigniter-vs-ruby-on-rails.jpg 700w, https:\/\/demianlabs.com\/lab\/wp-content\/uploads\/codeigniter-vs-ruby-on-rails-300x85.jpg 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>I started out in my windows 7 laptop and came across a myriad of problems. The first time there was encoding problems. Google came to the rescue. Then I had to configure the system PATH variable a few times since there was no documentation to tell me what to configure. It worked out fine. After a lot of hours I reached the point where I have a working Rails 3 installation but no virtual hosts and of course no sub domains. Unfortunately <a title=\"Mod_rails\" href=\"http:\/\/www.modrails.com\">Passenger<\/a> doesn&#8217;t work on windows and it&#8217;s developers don&#8217;t plan a release anytime soon. So since I can&#8217;t find documentation on virtual hosts with ruby and I&#8217;m quite tired of googling I gave up on the idea.<\/p>\n<p>Next stop was Ubuntu. The Rails version in the latest Ubuntu is still 2.x. There are no official repositories to give you a Rails 3 installation out of the box so the most reasonable option is <a title=\"Ruby Version Manager\" href=\"https:\/\/rvm.beginrescueend.com\/\">RVM<\/a>. To make a long story short, after a few hours of trying, it didn&#8217;t work. I&#8217;m quite well aware that other people have had more success than me but unfortunately for me things didn&#8217;t work out the way I wanted them to.<\/p>\n<p>In PHP\/apache world there are installers for windows that just work out of the box. In any Linux distribution things are even better. So since I don&#8217;t own a mac and I can&#8217;t spare any more time things are quite clear. The way I see it deployment for Rails is still lacking in options. Maybe Rails is a great way to build web applications and maybe it could save me time in the long run. But the way things are now, it just waists me time. So I&#8217;m sticking with CodeIgniter and I&#8217;ll revisit Rails next year when it will hopefully be more mature.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you&#8217;re about to start a new project it&#8217;s the right time to move to something new. Sometimes it&#8217;s a new CSS or Javascript framework, sometimes it&#8217;s a new version control system, in my case it was moving from PHP\/CodeIgniter to Ruby\/Ruby on Rails. I started out in my windows 7 laptop and came across [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-academy"],"_links":{"self":[{"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":5,"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/posts\/129\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demianlabs.com\/lab\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}