{"id":27,"date":"2006-04-05T18:27:58","date_gmt":"2006-04-06T02:27:58","guid":{"rendered":"https:\/\/www.muzeo.com\/archives\/27"},"modified":"2006-04-05T18:27:58","modified_gmt":"2006-04-06T02:27:58","slug":"ruby-on-rails","status":"publish","type":"post","link":"https:\/\/www.aye0.com\/darmablog\/ruby-on-rails\/","title":{"rendered":"ruby on rails"},"content":{"rendered":"<p>It&#8217;s always the little things.<\/p>\n<p>After working through a complete install of rails on Mac OSX Tiger, following the excellent steps on <a href=\"http:\/\/hivelogic.com\/articles\/2005\/12\/01\/ruby_rails_lighttpd_mysql_tiger\">this page<\/a>, and then creating a test application a la <a href=\"http:\/\/www.jadetower.org\/muses\/archives\/000475.html\">these directions<\/a>, I still couldn&#8217;t get my browser to recognize my application.  Yes I would get the &#8220;Welcome Aboard&#8221; message when connecting to localhost:3000, but my application would either give a 404 or just timeout. So, I googled and newsgrouped, but to no avail.  Saw plenty of references to similar errors, 500 errors, etc. but no clear suggestion of a resolution.<\/p>\n<p><!--more--><\/p>\n<p>So, I regrouped and used <a title=\"RoR\" href=\"http:\/\/tonyarnold.com\/articles\/2005\/12\/14\/ruby-on-rails-1-0-installer\">this packaged installer<\/a>, which fixes the problems native to the OSX 10.4 install of ruby, and sets up the whole shebang all over again.  Very nice way to go and if I had to do it again I&#8217;d just start here.  Probably a completely separate install from the first one above tho, since the former instructions put everything in \/usr\/local. But I still couldn&#8217;t connect to my app. I imagined possible errors with FastCGI, so I followed <a href=\"http:\/\/wiki.rubyonrails.com\/rails\/pages\/FastCGI+on+OS+X\">these steps<\/a> too.  Nada.<\/p>\n<p>(Of course, there&#8217;s <a href=\"http:\/\/developer.apple.com\/tools\/rubyonrails.html\">Apple&#8217;s Developer pages<\/a> which points to the first site I used but includes much more detail about application creation&#8211;but without <a href=\"http:\/\/locomotive.raaum.org\/home\/show\/HomePage\">Locomotive<\/a> fwiw.  Interesting, but I just wanted it to work first. Nothing was pointing me in the right direction.)<\/p>\n<p>Then, last night about 4AM I woke up and thought &#8220;web permissions&#8230;the server doesn&#8217;t have permissions to the directory on my desktop.&#8221;  Now, I <strong>never<\/strong> would have made this mistake with a normal html\/cgi application, but new technology is always misleading somehow.  I was working on my Desktop, instead of Library\/Webserver\/ like I shoulda been.<\/p>\n<p>Now, Tony Arnold (the saviour who created the installer package I ended up using), has <a href=\"http:\/\/tonyarnold.com\/articles\/2005\/08\/10\/rolling-with-ruby-on-rails-on-mac-os-x-tiger-for-beginners\">another page<\/a> where he mentions permissions, but I guess I was in a hurry. But I don&#8217;t think <strong><em>any<\/em><\/strong> of the other sites mentioned this tiny but critical detail.  Maybe they thought it was too obvious.  But I can imagine lots of beginners simply going home in frustration after getting nowhere, if only they would cd to the right dir.<\/p>\n<p>Then again, I was also bamboozled on my linux box by another simple problem: I was trying to connect to lightpd instead of apache as recommended, but you need to stop httpd and then start lightpd since they can&#8217;t both use port 80.  <em>boing<\/em>.<\/p>\n<p>Seems like it&#8217;s always 1% of the problem that causes 99% of the headache. It&#8217;s the little things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s always the little things. After working through a complete install of rails on Mac OSX Tiger, following the excellent steps on this page, and then creating a test application a la these directions, I still couldn&#8217;t get my browser to recognize my application. Yes I would get the &#8220;Welcome Aboard&#8221; message when connecting to&#8230; <a class=\"more-link\" href=\"https:\/\/www.aye0.com\/darmablog\/ruby-on-rails\/\">Continue reading <span class=\"meta-nav\">&#8594;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[34,35],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-code","tag-linux","tag-mac"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7fNAG-r","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":0,"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aye0.com\/darmablog\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}