<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel S. Toma on Medium]]></title>
        <description><![CDATA[Stories by Daniel S. Toma on Medium]]></description>
        <link>https://medium.com/@SoulSoldSeparately?source=rss-60c72b489002------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QWo3u3L6MCALnvwxv9kEfQ.jpeg</url>
            <title>Stories by Daniel S. Toma on Medium</title>
            <link>https://medium.com/@SoulSoldSeparately?source=rss-60c72b489002------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:13:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SoulSoldSeparately/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ruby on Rails: My initial exploration]]></title>
            <link>https://medium.com/@SoulSoldSeparately/ruby-on-rails-my-initial-exploration-863edb429550?source=rss-60c72b489002------2</link>
            <guid isPermaLink="false">https://medium.com/p/863edb429550</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[beginner]]></category>
            <dc:creator><![CDATA[Daniel S. Toma]]></dc:creator>
            <pubDate>Tue, 22 Jan 2019 01:57:58 GMT</pubDate>
            <atom:updated>2019-01-22T13:30:32.472Z</atom:updated>
            <content:encoded><![CDATA[<p>Just three months ago, I had never seen Ruby code. Then I was accepted to a bootcamp, and was given labs to complete…in Ruby. I started with the traditional ‘Hello World’, and took it from there.</p><p>Now, two weeks into that bootcamp, my cohort is one week from starting our second module: <strong>Ruby</strong> <strong>on Rails.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*exfhKmRRwqL0YRD6GSinaA.jpeg" /><figcaption>Guy walking on rails, although *HE* might actually know where he’s going</figcaption></figure><p>So, like any curious, inquisitive kid might do, I decided to look ahead to dip my toe into the ocean that is Rails.</p><p>But I knew that I couldn’t rush to type ‘<strong><em>install Rails</em></strong>’ at the prompt, because</p><ul><li>I’d already experienced configuration issues with Ruby alone, so maybe more issues would arise by installing Rails</li><li>If it went smoothly, that would just be too easy, and <em>nothing </em>is that easy</li><li>And what the heck is Rails, anyway???</li></ul><p>So, rather than dive in, I opted for the toe-dip or, in the common parlance, baby steps…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*cpYXeLCVm5x4L5eeNd-WKg.png" /></figure><p>At this point, all I knew of Rails was that our bootcamp cohort is going to begin to learn about it in a week.</p><p>Ok, that’s not <em>entirely</em> true. After some rudimentary research, I learned a few things, and I started my research at what appears to be an important website:</p><p><a href="https://rubyonrails.org/">Ruby on Rails: Compress the complexity of modern web apps</a></p><p>I was overwhelmed by the amount of documentation, so I made sure to remember one particular point:</p><p><em>Ruby on Rails (aka “Rails”) is a web development framework written in the Ruby programming language</em></p><p>Now, filtering that down into exactly what comprises Rails is like going down the rabbit hole in ‘Alice in Wonderland’, but I’m not there yet. At least, not for another week.</p><p>However, one suggestion can immediately be extracted from that “definition”:</p><p><strong>— — Learn Ruby <em>before</em> digging into Rails.</strong></p><blockquote>Seems reasonable, as Rails is built on Ruby, but this begs the question “How much Ruby should one know?” With my cohort, it’s two weeks’ worth, but we move quickly, so those two weeks might be two months for someone else. I guess it just … depends.</blockquote><p>So, why do I like the idea (soon-to-be reality) of <a href="http://www.opensourcerails.com/">Ruby on Rails</a>?</p><ul><li><strong>It’s free.</strong> Ruby on Rails and most of its libraries are open-source software, so you can install them without using a credit card (Definitely a + in my book)</li><li><strong>Emphasizes “Convention over Configuration philosophy. </strong>The programmer does not need to spend a lot of time configuring files in order to get setup. Rails comes with a set of conventions which help speed up development. The common conventions also make it easier for developers to move between different Rails projects</li><li><strong>Rapid Application Development</strong>. Rails framework has the flexibility to quickly accommodate changes in the development process.</li><li><strong>The process of programming can be faster</strong> than with other languages/frameworks, partly because of the object-oriented nature of Ruby and the vast collection of open source code available within the Rails community.</li></ul><p>But I’m not here to sell <strong>Ruby for Rails</strong>. After all, I’ve never even used it.</p><p>However, I <strong><em>am</em></strong> here to brag about installing <strong>Ruby for Rails</strong>, and I used this page to do it -&gt; <a href="https://gorails.com/setup/osx/10.13-high-sierra">https://gorails.com/setup/osx/10.13-high-sierra</a></p><blockquote>It’s worth noting that installation instructions are provided for six different versions of the Mac OS X, ranging from 10.9 through 10.14 inclusive. I currently use 10.13 (High Sierra), so I used the instructions from that page. Furthermore, this site — <a href="https://railsapps.github.io/installrubyonrails-mac.html">https://railsapps.github.io/installrubyonrails-mac.html</a> — states that, for Mac users, the OS should be at least 10.13.</blockquote><blockquote>I don’t have a Windows machine, but the documentation for installing Rails on a Windows machine seems to be quite sparse relative to that for Mac users.</blockquote><p><strong>Another page for installing Rails</strong>, but I barely looked at this one. <a href="http://installrails.com/">http://installrails.com/</a></p><p>Referring to the instructions, <strong>Homebrew</strong> and <strong>Ruby</strong> (2.3.3) were already installed, and <strong>Git</strong> was already configured. Thus, I went straight to the Rails step, which installs the most current, stable release. I did this via Terminal in my <strong>/Users/danieltoma</strong> directory.</p><pre>gem install rails</pre><blockquote>You could also append a specific version to this command, which you might do if you wanted to install an older version of Rails (perhaps you’d need an older version to play well with other older components).</blockquote><p>So, rails-5.2.2 is apparently the most current, stable release. Also installed with rails was <strong>railties-5.2.2</strong>. As of now, all I know about <strong>railties</strong> is that they work with Rails, and are necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*HO7YoRgdxfeCMK1jjAa-MA.png" /></figure><pre>rails -v</pre><p>…yields <strong>Rails 5.2.2. </strong>Awesome!</p><p>Then, the instructions talk about setting up a database, and there are three that are specifically mentioned:</p><ul><li><strong>Sqlite3</strong></li><li><strong>MySQL</strong></li><li><strong>Postgresql</strong></li></ul><blockquote>The author recommends using Postgresql, although my current cohort has already used Sqlite3, which also happens to ship with Rails. I believe that any of these databases would suffice for me, particularly as a Rails beginner, so I’ll postpone installing another database. For now, it’s Sqlite3.</blockquote><p>Now it was time to create a Rails application, but I hesitated a bit, wondering if clicking ‘Enter’ would yield unpredictable results…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*DvVlL6x6ABFLKf2Bs52Q9g.png" /></figure><p>Ok, it wasn’t as bad as my laptop catching fire, but when I typed the following and hit ‘Enter’, I did receive an unexpected message.</p><pre>rails new foo</pre><p>And that message was Can&#39;t initialize a new Rails application within the directory of another, please change to a non-Rails directory first</p><p>Um..yeah. I immediately Googled that lovely message, and found someone on <a href="https://stackoverflow.com/"><strong>Stack Overflow</strong></a><strong> </strong>who had experienced the same, and had taken the following steps, which had apparently eliminated the problem.</p><ol><li>cd bin (I was now in <em>/Users/danieltoma/bin)</em></li><li>rm -rf rails</li></ol><p>These two steps apparently eliminated the error for me, too, because when I executed <strong>rails new foo, </strong>I watched as many files and gems were created right before my eyes.</p><pre><strong>rails new foo</strong> --&gt; created a folder in /Users/danieltoma named &#39;foo&#39;</pre><p>And then I gazed upon the contents of the ‘foo’ directory, the directory containing my Rails app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LR9z-vICGSbWs-8HpMgtkQ.png" /></figure><p>Then I did this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*fgAsSS7SrSMoIA8NbA0fhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*qC4EGDNnBAnGIL15ubPvhA.png" /></figure><p>Finally, the instructions say that I can see my app at <a href="http://localhost:3000/">http://localhost:3000</a> , and when I go to that address I see the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HxhVPnCwnp6eiu5A37cNtw.png" /></figure><p>I went through all of that for <strong><em>this</em></strong>??? Absolutely!! And it was worth it, too!!</p><h3>In closing</h3><p>I just touched the tip — of the tip — of the iceberg that is Rails. It was actually quite fun just to see if I could do enough to see <em>something</em> in the browser to indicate that I had actually done <em>something</em> that could lead to a viable app.</p><p>As the song goes, the best is yet to come…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=863edb429550" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>