<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learning Rails &#187; Rails</title>
	<atom:link href="http://joelandkaren.com/learningrails/archives/category/rails/feed" rel="self" type="application/rss+xml" />
	<link>http://joelandkaren.com/learningrails</link>
	<description>Joel Greenberg's Experience in Learning Web Development with Ruby on Rails</description>
	<lastBuildDate>Mon, 16 Jun 2008 23:23:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby on Rails Cheat Sheet</title>
		<link>http://joelandkaren.com/learningrails/archives/23</link>
		<comments>http://joelandkaren.com/learningrails/archives/23#comments</comments>
		<pubDate>Wed, 31 Jan 2007 04:29:26 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Language Tips]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby Language]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/archives/23</guid>
		<description><![CDATA[A shout out to Adrian, who left a message on one of my posts encouraging me to keep going with rails.  He pointed me to a nice Ruby on Rails Cheat Sheet written by a technologist named Pascal. It succinctly lists out commands you&#8217;d need to create a Rails application.Â  I wish one of [...]]]></description>
			<content:encoded><![CDATA[<p>A shout out to <a href="http://www.arctus.co.uk/">Adrian</a>, who left a message on one of my posts encouraging me to keep going with rails.  He pointed me to a nice <a href="http://blog.nanorails.com/pages/rails_1.1_cheat_sheet">Ruby on Rails Cheat Sheet</a> written by a technologist named Pascal. It succinctly lists out commands you&#8217;d need to create a Rails application.Â  I wish one of the books I bought had this list; it&#8217;s really handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/23/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby for Rails by David A. Black</title>
		<link>http://joelandkaren.com/learningrails/archives/21</link>
		<comments>http://joelandkaren.com/learningrails/archives/21#comments</comments>
		<pubDate>Fri, 26 Jan 2007 05:58:00 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby Language]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/archives/21</guid>
		<description><![CDATA[After a number of months hiatus, I&#8217;m back to learning Ruby, again because I have ideas I want to sketch out in code.  If I&#8217;m going to be learning a new language anyway, then Ruby seems to give me the most bang for the buck and seems to be easy to wrap my head [...]]]></description>
			<content:encoded><![CDATA[<p>After a number of months hiatus, I&#8217;m back to learning Ruby, again because I have ideas I want to sketch out in code.  If I&#8217;m going to be learning a new language anyway, then Ruby seems to give me the most bang for the buck and seems to be easy to wrap my head around.  My experience with object oriented coding has been with Lingo, Director&#8217;s language (back in the multimedia days), Java, and a Forth-like language called Magic/L back in the pre-cambrian period of programming.  What&#8217;s really nice about Ruby is once I understood things like iterators, I saw how compact and English-like the language really could be.  Odd, seeing as the language was invented by a Japaneese speaker whose second language is English.</p>
<p>I was talking about my frustrations about learning Ruby and Rails to my friend, <a href="http://opposablemind.typepad.com/">David Sedlow</a>, using the <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2FAgile-Development-Rails-Dave-Thomas%2Fdp%2F0977616630%2Fsr%3D8-1%2Fqid%3D1169789944%3Fie%3DUTF8%26s%3Dbooks&#038;tag=friendstalkin-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=9325">Agile Development with Rails </a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&#038;l=ur2&#038;o=1" /> book.  We both come from a we-used-to-be-programmers but-haven&#8217;t-done-it-professionally-in-years background. (To me, the book needs to be user tested because it makes some assumptions that you already know Rails&#8230;inadvertently, or not.)  David suggested <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2FRuby-Rails-Techniques-Developers%2Fdp%2F1932394699%2Fsr%3D1-1%2Fqid%3D1169790014%3Fie%3DUTF8%26s%3Dbooks&#038;tag=friendstalkin-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=9325">Ruby for Rails</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&#038;l=ur2&#038;o=1" /> by David A. Black.  I have found <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2FRuby-Rails-Techniques-Developers%2Fdp%2F1932394699%2Fsr%3D1-1%2Fqid%3D1169790014%3Fie%3DUTF8%26s%3Dbooks&#038;tag=friendstalkin-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=9325">Ruby for Rails</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&#038;l=ur2&#038;o=1" /> easy to understand.  It explains things in a logical sequence and explains them thoroughly.  It&#8217;s also a nice mix between Ruby and Rails, making the reasonable assumption that you need to understand Ruby if you want to understand Rails.<img align="left" src="http://ec1.images-amazon.com/images/P/1932394699.01._AA240_SCLZZZZZZZ_V37019386_.jpg" />This book is enough to get started with Rails development.  I believe between this and the <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.com%2FProgramming-Ruby-Pragmatic-Programmers-Second%2Fdp%2F0974514055%2Fsr%3D1-1%2Fqid%3D1169790287%3Fie%3DUTF8%26s%3Dbooks&#038;tag=friendstalkin-20&#038;linkCode=ur2&#038;camp=1789&#038;creative=9325">The Pickaxe Book</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&#038;l=ur2&#038;o=1" />, I have what I need to get going with Ruby and Rails.  I may not even need to the Pick Axe book, it&#8217;s that good at providing a basic understanding of Ruby.</p>
<p>Indeed, last night I hacked out a little screen scraper that prints out the items viewed from a youtube.com page.  Not much, but with many ad agencies and brands putting their commercials on YouTube, I believe it could be a simple, useful tool.  Give it a list of YouTube url&#8217;s to track and it returns a  simple list of desired videos with the number of times they&#8217;ve been viewed.  This tracking guide would be useful to folks in the marketing world.</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing my first rails app with a database</title>
		<link>http://joelandkaren.com/learningrails/archives/9</link>
		<comments>http://joelandkaren.com/learningrails/archives/9#comments</comments>
		<pubDate>Sat, 22 Apr 2006 19:13:49 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Gnarly Bugs]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/archives/9</guid>
		<description><![CDATA[So, yesterday I figured out that I could connect to the MySQL database using a different port: 3306.  Today, I tried using MySQLFront.  Bummer, but I still couldn&#8217;t connect to a database.  I looked for a free MySQL client and found SQL Manager 2005 Lite.  That finally worked.  So, I [...]]]></description>
			<content:encoded><![CDATA[<p>So, yesterday I figured out that I could connect to the MySQL database using a different port: 3306.  Today, I tried using <a href="http://www.mysqlfront.de/">MySQLFront.</a>  Bummer, but I still couldn&#8217;t connect to a database.  I looked for a free MySQL client and found <a href="http://www.sqlmanager.net/products/mssql/manager">SQL Manager 2005 Lite.</a>  That finally worked.  So, I created my first database-driven Rails app, following along in  <em>Agile Web Development With Rails</em>.</p>
<p>Finally, on my way to learning Rails!</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t Make MySQL Table for Rails</title>
		<link>http://joelandkaren.com/learningrails/archives/8</link>
		<comments>http://joelandkaren.com/learningrails/archives/8#comments</comments>
		<pubDate>Fri, 21 Apr 2006 14:00:37 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Gnarly Bugs]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/archives/8</guid>
		<description><![CDATA[I ran into my first &#8220;bug&#8221; the stopped me cold. I define a &#8220;bug&#8221; as anything that prevents me from moving forward, whether it&#8217;s code, configuration, poor interface, etc. It&#8217;s a practical definition based upon the fact that I&#8217;m programming to solve a problem, to get something done, and if I can&#8217;t, then I need [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into my first &#8220;bug&#8221; the stopped me cold. I define a &#8220;bug&#8221; as anything that prevents me from moving forward, whether it&#8217;s code, configuration, poor interface, etc. It&#8217;s a practical definition based upon the fact that I&#8217;m programming to solve a problem, to get something done, and if I can&#8217;t, then I need to fix it so I can.</p>
<p>The problem was permissions on the MySQL database when following along on pg. 55 of <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&amp;#038;tag=friendstalkin-20&amp;#038;camp=1789&amp;#038;creative=9325&amp;#038;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F097669400X%2Fsr%3D8-1%2Fqid%3D1145457858%2Fref%3Dpd_bbs_1%3F%255Fencoding%3DUTF8">Agile Web Development with Rails : A Pragmatic Guide</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&amp;amp;l=ur2&amp;amp;o=1" />.  It&#8217;s the first exercise of hooking up a database to Rails.</p>
<p>As part of building the MySQL table, the exercise has you execute the following line:</p>
<blockquote>
<pre>depot> mysql depot_development</pre>
</blockquote>
<p>Up to this point in the exercise, connecting to the database was done with the username &#8220;root&#8221; and no password. Everything worked fine. But executing the above line caused the following error.</p>
<blockquote>
<pre>ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)</pre>
</blockquote>
<p>Can&#8217;t finish creating the database.Â  Rats!</p>
<h4>The Solution</h4>
<p>Long story short, the solution was found in the MySQL Error Log.Â  In it, I kept on seeing citations that had &#8220;port:3306&#8243; in it.</p>
<p>Instead of trying to connect and build the database from the command line, like it&#8217;s illustrated in the book, I decided to use <a href="http://www.mysqlfront.de/">MySQL-Front</a> to connect to the database.Â Â  But I still could not.<br />
Now, the server that ships with Rails, WEBrick, apparently is on port 3000.Â  I tried that port in MySQL-Front.Â  No luck.</p>
<p>So, I tried using port 3306.Â  It connected just fine!</p>
<p>Now, I haven&#8217;t actually tried to manipulate the table in MySQL-front, or Rails, just yet because I&#8217;ve run out of timing trying to solve this problem, but I think I solved the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/8/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting Started with Books and Websites</title>
		<link>http://joelandkaren.com/learningrails/archives/5</link>
		<comments>http://joelandkaren.com/learningrails/archives/5#comments</comments>
		<pubDate>Wed, 19 Apr 2006 15:42:25 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby Language]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/?p=5</guid>
		<description><![CDATA[So, I went to the local bookstore and loaded up on two popular books on Ruby:
Programming Ruby: The Pragmatic Programmers&#8217; Guide, Second Edition
This is a comprehensive book on the Ruby language. It looks like a good choice to learn the language. I know there must be other good books out there, though. I just don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>So, I went to the local bookstore and loaded up on two popular books on Ruby:</p>
<p><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&#038;tag=friendstalkin-20&#038;camp=1789&#038;creative=9325&#038;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F0974514055%2Fref%3Dpd_bxgy_img_b%3F%255Fencoding%3DUTF8">Programming Ruby: The Pragmatic Programmers&#8217; Guide, Second Edition</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&amp;l=ur2&amp;o=1" /><br />
This is a comprehensive book on the Ruby language. It looks like a good choice to learn the language. I know there must be other good books out there, though. I just don&#8217;t have the time to go through them all to find the best one. This book is informally known as the &#8220;Pick Axe&#8221; book because of the front cover. The first edition of the book can be found online, <a href="http://www.ruby-doc.org/docs/ProgrammingRuby/">here.</a></p>
<p><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&#038;tag=friendstalkin-20&#038;camp=1789&#038;creative=9325&#038;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F097669400X%2Fsr%3D8-1%2Fqid%3D1145457858%2Fref%3Dpd_bbs_1%3F%255Fencoding%3DUTF8">Agile Web Development with Rails : A Pragmatic Guide</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=friendstalkin-20&amp;l=ur2&amp;o=1" /><br />
Looks like a fairly comprehensive guide to Rails. Of course, you need to know Ruby to get the most out of it. It&#8217;s also helpful to know a little bit of MySQL syntax for creating tables. <a href="http://dev.mysql.com/tech-resources/articles/mysql_intro.html">Here&#8217;s</a> one MySQL tutorial.  <a href="http://www.thescripts.com/serversidescripting/mysql/tutorials/introductiontomysql/index.html">Here&#8217;s</a> another.</p>
<p>I&#8217;m also using a few websites in my quest to learn Ruby:</p>
<p><a href="http://www.ruby-doc.org/">Ruby-doc.org:</a>  A great resource.  Online documentation for classes found in the <a href="http://www.ruby-doc.org/core/">Ruby Core </a>as well as the <a href="http://www.ruby-doc.org/stdlib/">Standard Library.</a> Has nice, tight introduction of <a href="http://www.ruby-doc.org/docs/Newcomers/ruby.html">Things That Newcomers to Ruby Should Know.</a></p>
<p><a href="http://www.ruby-lang.org/en/">Ruby-lang.org:</a> The official Ruby Language site. All things ruby, learning is only one part, so it&#8217;s a bit overwhelming for someone new to the language.</p>
<p><a href="http://www.rubygarden.org/ruby">RubyGarden.org&#8217;s Wiki</a>.   Haven&#8217;t spent much time, but looks more useful to a beginner than the overwhelming Ruby-lang.org.</p>
<h3>What&#8217;s Missing?</h3>
<p>There&#8217;s one thing missing from the above list of resources: a good Ruby idioms resource. Idioms are ways to code things that are specific to Ruby. Idioms are typically confusing to people new to the language, but make sense on their own terms. I&#8217;m on the look out for a good idioms resource&#8230;</p>
<p>All the above assumes you have experience in at least one other object oriented language. These are not good resources to learn object oriented programming; so, if you&#8217;ve never programmed before, you&#8217;ll be lost.</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Got Started With Instant Rails</title>
		<link>http://joelandkaren.com/learningrails/archives/4</link>
		<comments>http://joelandkaren.com/learningrails/archives/4#comments</comments>
		<pubDate>Tue, 18 Apr 2006 22:58:20 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/?p=4</guid>
		<description><![CDATA[I installed Instant Rails on my Windows XP Pro notebook.  It was an easy install, just unzip into a directory and run InstantRails.exe.
I ran into one problem that you may have as well if you&#8217;re running Windows XP Pro. You need to run InstantRails.exe with administrator rights, otherwise it will not work. For the [...]]]></description>
			<content:encoded><![CDATA[<p>I installed <a href="http://instantrails.rubyforge.org/wiki/wiki.pl">Instant Rails</a> on my Windows XP Pro notebook.  It was an easy install, just unzip into a directory and run InstantRails.exe.</p>
<p>I ran into one problem that you may have as well if you&#8217;re running Windows XP Pro. You need to run InstantRails.exe with administrator rights, otherwise it will not work. For the first time, I logged in as administrator. Once I did that, I was able to run InstantRails.exe with administrator rights, even though I wasn&#8217;t logged in as administrator. To do so yourself, right click on InstantRails.exe and choose &#8220;Run as&#8230;&#8221; and run as administator.</p>
<p>In other words, if you don&#8217;t have administrator rights, you can&#8217;t run Instant Rails.</p>
<h3>IRB</h3>
<p>One of the nice things about Ruby is IRB, Interactive Ruby. IRB allows you to run code and see results immediately. Choose Rail Applications\Open Ruby Console Window and type IRB. It&#8217;s a nice prototyping tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Begining to Learn Rails</title>
		<link>http://joelandkaren.com/learningrails/archives/3</link>
		<comments>http://joelandkaren.com/learningrails/archives/3#comments</comments>
		<pubDate>Sun, 16 Apr 2006 22:23:34 +0000</pubDate>
		<dc:creator>joelg</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby Language]]></category>

		<guid isPermaLink="false">http://joelandkaren.com/learningrails/?p=3</guid>
		<description><![CDATA[This blog follows my (Joel Greenberg)&#8217;s attempt to learn Ruby and Ruby on Rails. I&#8217;ve got a few business ideas that I&#8217;m trying to bring to life with friends and we need a programming framework to quickly make interactive, database-driven websites.
Who am I?
I haven&#8217;t programmed professionaly in about nine years. However, in my past I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>This blog follows my (Joel Greenberg)&#8217;s attempt to learn Ruby and Ruby on Rails. I&#8217;ve got a few business ideas that I&#8217;m trying to bring to life with friends and we need a programming framework to quickly make interactive, database-driven websites.</p>
<h3>Who am I?</h3>
<p>I haven&#8217;t programmed professionaly in about nine years. However, in my past I&#8217;ve programmed in C; a forth-like language called Magic/L; the iconic language Authorware; Macromedia Director (Lingo); Multimedia Toolbook (yeah, I&#8217;m showing my age), Apple Script (which is a great, object oriented language&#8211;too bad it wasn&#8217;t well supported), and a little Java a long time ago. I&#8217;m trying to generate extra income by creating a community site with a friend around women exercise enthusiasts. He&#8217;s a designer; I&#8217;m a strategy guy. We could hire a programmer&#8230;if we had the cash. So, I figure, being an old programmer, why not give development a shot? Then, when the sites at a point where we have a small audience, we can think about paying a programmer to take it to the next level.</p>
<h3>Why Ruby on Rails?</h3>
<p>Well, the choices were Ruby on Rails, <a href="http://www.python.org/">Python </a>with <a href="http://www.djangoproject.com/">Django </a>(or some other framework), or a Content Mangement System (CSM)&#8230;say, Mambo. I ruled out a CMS because our idea isn&#8217;t heavy on articles and I&#8217;d have to end up programming anyway to get a CMS to perform the way I wanted it to. With that kind of effort, why not just learn a language and a framework?</p>
<p>I&#8217;ve kind of wanted to learn Python, but I bought the hype that Ruby on Rails is quicker.   I viewed some of the <a title="Ruby on Rails Presentations" href="http://www.rubyonrails.org/screencasts">presentations </a>at <a href="http://www.rubyonrails.org">RubyonRails.org</a> and felt that if I was going to put the time into learning a new language anyway, why not go for something that promises to be Really Quick for development.</p>
<p>Ruby is used by <a href="http://www.37signals.com">37Signals</a> for their project management tool, <a href="http://www.basecamphq.com/">Basecamp</a>.  I heard Jason Fried, of 37 Signals, on a panel at <a href="http://www.sxsw.com/interactive">SXSW </a>and on a <a href="http://www.itconversations.com/shows/detail471.html">podcast </a>from IT Conversations. I liked his philosophy of people over process and code over 3 inch binders of documentation. Ruby was designed with those types of principals in mind. To me, coding is about solving problems and providing value NOT about tomes of documentation that no one ever reads. (And I&#8217;m an old tech writer, too. I&#8217;ve written those tomes and stopped doing it early in my career).</p>
<p>Ruby holds the promise of quick development and has a development philosophy that appeals to me. I won&#8217;t be trying to bend a language built for corporate America into my freewheeling idea.Â  I&#8217;m programming for my own needs.Â  I don&#8217;t intend to go back to work for hire programming.<br />
So, the potential&#8217;s there. Follow along with me to see what it takes to learn Ruby on Rails and see if the potential becomes realized.</p>
<p>Joel</p>
]]></content:encoded>
			<wfw:commentRss>http://joelandkaren.com/learningrails/archives/3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

