<?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[Ruby on Rails::Basics - Medium]]></title>
        <description><![CDATA[Stories from novices teaching themselves Ruby and Rails. A sort of DIY Ruby learning collective if you will. - Medium]]></description>
        <link>https://medium.com/code-for-denver-ruby?source=rss----8d8e4dd40d09---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Ruby on Rails::Basics - Medium</title>
            <link>https://medium.com/code-for-denver-ruby?source=rss----8d8e4dd40d09---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:33:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/code-for-denver-ruby" 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 basics]]></title>
            <link>https://medium.com/code-for-denver-ruby/ruby-on-rails-basics-8ca2d4c5a266?source=rss----8d8e4dd40d09---4</link>
            <guid isPermaLink="false">https://medium.com/p/8ca2d4c5a266</guid>
            <dc:creator><![CDATA[Jadam]]></dc:creator>
            <pubDate>Sat, 08 Nov 2014 21:42:45 GMT</pubDate>
            <atom:updated>2014-11-08T22:54:40.662Z</atom:updated>
            <content:encoded><![CDATA[<h4>Setting up HAML &amp; Bootstrap</h4><p>Building off of the basic CRUD app I made from post on <a href="https://medium.com/gschool-chronicles/this-is-how-you-do-basic-crud-5777b9445ac5">This is how you do basic CRUD</a> we will be adding Twitter Bootstrap to it and swapping it over from Html to Haml. Twitter Bootstrap is a Haml is an Html abstraction language that I enjoy as it makes quickly scanning through my code base much easier.</p><h4>Installing Bootstrap</h4><p>Bootstrap is pretty quick and easy to get setup. First lets add the <em>bootstrap-sass </em>&amp; <em>autoprefixer</em> gems to our <em>Gemfile</em>. Go ahead and clear out all those commented lines of code. Your file should look something similar to this:</p><pre>source ‘<a href="https://rubygems.org'/">https://rubygems.org&#39;</a></pre><pre>gem ‘rails’, ‘4.2.0.beta2&#39;<br>gem ‘pg’<br><strong>gem ‘autoprefixer-rails’<br>gem ‘bootstrap-sass’, ‘~&gt; 3.2.0&#39;</strong><br>gem ‘sass-rails’, ‘~&gt; 5.0.0.beta1&#39;<br>gem ‘uglifier’, ‘&gt;= 1.3.0&#39;<br>gem ‘coffee-rails’, ‘~&gt; 4.0.0&#39;<br>gem ‘jquery-rails’, ‘~&gt; 4.0.0.beta2&#39;<br>gem ‘jbuilder’, ‘~&gt; 2.0&#39;<br>gem ‘sdoc’, ‘~&gt; 0.4.0&#39;, group: :doc</pre><pre>group :development, :test do<br> gem ‘byebug’<br> gem ‘web-console’, ‘~&gt; 2.0.0.beta4&#39;<br> gem ‘spring’<br>end</pre><p>Any time you add a gem to your Gemfile you will need to run the <em>bundle </em>command<em> </em>in your terminal:</p><pre>$ bundle</pre><p>We’ll jump over to our <em>/assets </em>directory to do the last two steps of the setup. In our css folder we’ll add these two lines of code at the bottom:<br><strong>app/assets/stylesheets/application.css</strong></p><pre><a href="http://twitter.com/import">@import</a> “bootstrap-sprockets”;<br><a href="http://twitter.com/import">@import</a> “bootstrap”;</pre><p>We’ll also need to change the file name from <em>application.css</em> to <em>application.css.</em><strong><em>scss</em></strong></p><p>One more one liner and we’re done with basic Bootstrap Add <em>//= require</em> <em>bootstrap-sprockets</em> inside your application.js file.<br><strong>app/assets/javascript/application.js</strong></p><pre>//= require jquery<br><strong>//= require bootstrap-sprockets</strong><br>//= require jquery_ujs<br>//= require_tree .</pre><blockquote>If you had your rails server running you will need to restart it.</blockquote><h4>Setting up Haml</h4><p>Now over to Haml which is as simple as two things. Add the Haml gem to the <em>Gemfile…</em></p><pre>gem ‘autoprefixer-rails’<br>gem ‘jbuilder’, ‘~&gt; 2.0&#39;<br><strong>gem ‘haml’</strong><br>gem ‘sdoc’, ‘~&gt; 0.4.0&#39;, group: :doc</pre><p>… and the second step is just to remember that whenever you create a new view file that instead of having it formated with an erb extension, al la <em>filename.html.erb</em> it ends instead with .haml <em>filename.html.</em><strong><em>haml</em></strong></p><p>There’s <strong>a lot </strong>you can do with Bootstrap and you really should dig through the documentation on <a href="http://getbootstrap.com/">their site</a>. Should you have ran into any issues with setting up Bootstrap I suggest you check out their <a href="https://github.com/twbs/bootstrap-sass">Github readme.</a></p><p>If the Haml walkthrough leaves you a bit curious you can read more with this short post <a href="https://medium.com/gschool-chronicles/what-is-haml-you-ask-to-the-extent-ive-been-using-it-its-a-way-to-write-out-html-and-rubys-html-ed9d38af5bbf">Haml: form &amp;&amp; function</a>.</p><p>Available for Qs on Twitter: <a href="http://twitter.com/mrjadaml">@MrJadaml</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ca2d4c5a266" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-for-denver-ruby/ruby-on-rails-basics-8ca2d4c5a266">Ruby on Rails basics</a> was originally published in <a href="https://medium.com/code-for-denver-ruby">Ruby on Rails::Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First things first]]></title>
            <link>https://medium.com/code-for-denver-ruby/first-things-first-c0f1c0dd6c32?source=rss----8d8e4dd40d09---4</link>
            <guid isPermaLink="false">https://medium.com/p/c0f1c0dd6c32</guid>
            <dc:creator><![CDATA[Jadam]]></dc:creator>
            <pubDate>Sat, 17 May 2014 16:29:27 GMT</pubDate>
            <atom:updated>2014-05-17T16:28:57.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKmycqTX_7enF-vBp9dDBg.png" /></figure><h4>Setting up Ruby &amp; Rails environments!</h4><p>Before you can jump into programing anything you’ll want to get a few things squared away. If you’re new to programing this first bit may seem a bit overwhelming but don’t fret, it’s acutally easier than it appears. There are a lot of tutorials and books that can get you going and everyone has their preference and ours is <a href="http://installrails.com/">InstallRails.com</a>. It does a great job navigating the messy detials of operating systems and versions to get you to easy to follow instructions specific for whatever your setup may be. Also the pretty colors are a plesent distraction from how intimidating this initial process feels to many.</p><p>We’d love to get feedback about which tutorials you found the easiest or hardest to work with and any bugs you ran into along the way so that we can keep this post up to date with the best options.</p><p>Should you run into any issues setting up through installrails.com try one of these:</p><p><a href="http://ruby.learncodethehardway.org/book/ex0.html">Learn Rails the Hard Way — Setup</a></p><p><a href="http://tutorials.jumpstartlab.com/topics/environment/environment.html">Jumpstart Lab</a></p><p><a href="http://railsinstaller.org/">RubyInstaller.org</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0f1c0dd6c32" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-for-denver-ruby/first-things-first-c0f1c0dd6c32">First things first</a> was originally published in <a href="https://medium.com/code-for-denver-ruby">Ruby on Rails::Basics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I TRAINed to learn Rails]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">A Guide to Learning Rails in 2 months</p><p class="medium-feed-link"><a href="https://richardsondx.medium.com/how-i-trained-to-learn-rails-e08c94e2a51e?source=rss----8d8e4dd40d09---4">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://richardsondx.medium.com/how-i-trained-to-learn-rails-e08c94e2a51e?source=rss----8d8e4dd40d09---4</link>
            <guid isPermaLink="false">https://medium.com/p/e08c94e2a51e</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[how-to-learn-rails]]></category>
            <category><![CDATA[how-to-learn-ruby]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Richardson Dackam]]></dc:creator>
            <pubDate>Wed, 04 Dec 2013 17:48:25 GMT</pubDate>
            <atom:updated>2020-03-23T21:22:36.841Z</atom:updated>
        </item>
    </channel>
</rss>