<?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>Citizensheep &#187; programming</title>
	<atom:link href="http://citizensheep.com/blog/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://citizensheep.com/blog</link>
	<description>Michael Grimes lives in Birmingham (UK). This is his blog about anything that he fancies.</description>
	<lastBuildDate>Wed, 23 May 2012 15:29:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Creating Database-driven Apps with Sinatra</title>
		<link>http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/</link>
		<comments>http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 12:00:12 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Sheep Dip]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sinatra]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/</guid>
		<description><![CDATA[Sinatra itself has useful help pages, but (so far) this the best tutorial I&#8217;ve found. Creating Database-driven Apps with Sinatra Possibly related posts A Beginner&#39;s Sinatra Tutorial DIYcity: reinventing your city by building web apps Nibbler &#8211; take a taste of your website<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/" rel="bookmark">A Beginner&#39;s Sinatra Tutorial</a><!-- (71)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2009/01/16/sheep-dip-16-january-2009/" rel="bookmark">DIYcity: reinventing your city by building web apps</a><!-- (14.8)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/03/29/nibbler-take-a-taste-of-your-website/" rel="bookmark">Nibbler &#8211; take a taste of your website</a><!-- (8.5)-->
							</li>
					</ol>
			</li>
	</ul>]]></description>
			<content:encoded><![CDATA[<p>Sinatra itself has useful help pages, but (so far) this the best tutorial I&#8217;ve found.</p>
<p><strong><a href="http://ruby.about.com/od/sinatra/a/sinatra7.htm">Creating Database-driven Apps with Sinatra</a></strong></p>
<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/" rel="bookmark">A Beginner&#39;s Sinatra Tutorial</a><!-- (71)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2009/01/16/sheep-dip-16-january-2009/" rel="bookmark">DIYcity: reinventing your city by building web apps</a><!-- (14.8)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/03/29/nibbler-take-a-taste-of-your-website/" rel="bookmark">Nibbler &#8211; take a taste of your website</a><!-- (8.5)-->
							</li>
					</ol>
			</li>
	</ul>]]></content:encoded>
			<wfw:commentRss>http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Beginner&#039;s Sinatra Tutorial</title>
		<link>http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/</link>
		<comments>http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/#comments</comments>
		<pubDate>Mon, 31 May 2010 17:00:11 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Sheep Dip]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sinatra]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/</guid>
		<description><![CDATA[In my desperate attempt to grapple with Ruby people keep introducing me to new and &#39;better&#39; ways to use it, before I&#39;ve had a chance to understand what I was doing with the previous one they lauded. Currently under my nose is Sinatra, which would probably be great if I understood what I was doing. [...]<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/" rel="bookmark">Creating Database-driven Apps with Sinatra</a><!-- (59)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/04/22/2293/" rel="bookmark">Ruby on Rails beginners club in Birmingham: are you interested?</a><!-- (24.6)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2009/01/26/31-days-to-building-a-better-blog/" rel="bookmark">31 Days to Building a Better Blog</a><!-- (11.3)-->
							</li>
					</ol>
			</li>
	</ul>]]></description>
			<content:encoded><![CDATA[<p>In my desperate attempt to grapple with Ruby people keep introducing me to new and &#39;better&#39; ways to use it, before I&#39;ve had a chance to understand what I was doing with the previous one they lauded. Currently under my nose is Sinatra, which would probably be great if I understood what I was doing. Anyway, this tutorial seems to make more sense than Sinatra&#39;s own help pages.</p>
<p><a href="http://titusd.co.uk/2010/04/07/a-beginners-sinatra-tutorial" title="A Beginner&#39;s Sinatra Tutorial">Visit <strong>A Beginner&#39;s Sinatra Tutorial</strong></a></p>
<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/" rel="bookmark">Creating Database-driven Apps with Sinatra</a><!-- (59)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/04/22/2293/" rel="bookmark">Ruby on Rails beginners club in Birmingham: are you interested?</a><!-- (24.6)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2009/01/26/31-days-to-building-a-better-blog/" rel="bookmark">31 Days to Building a Better Blog</a><!-- (11.3)-->
							</li>
					</ol>
			</li>
	</ul>]]></content:encoded>
			<wfw:commentRss>http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scratching my head over Rails</title>
		<link>http://citizensheep.com/blog/2010/05/17/scratching-my-head-over-rails/</link>
		<comments>http://citizensheep.com/blog/2010/05/17/scratching-my-head-over-rails/#comments</comments>
		<pubDate>Mon, 17 May 2010 08:20:34 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Help!]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://citizensheep.com/blog/?p=2379</guid>
		<description><![CDATA[I&#8217;m trying to teach myself Rails, but I&#8217;m not even a programmer. So when I&#8217;m stumped, I&#8217;m fairly stumped. Currently my app is not saving form data when it should be, and redirecting when it shouldn&#8217;t. Update I&#8217;ve actually fixed this now. It was the &#8216;home_path&#8217; route that was causing the problems. Thanks to everyone [...]<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/04/22/2293/" rel="bookmark">Ruby on Rails beginners club in Birmingham: are you interested?</a><!-- (26.3)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2009/11/01/learn-to-program-using-ruby/" rel="bookmark">Learn to Program (using Ruby)</a><!-- (12.4)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2007/04/03/corrupt-tiddlers/" rel="bookmark">Corrupt tiddlers</a><!-- (8.9)-->
							</li>
					</ol>
			</li>
	</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to teach myself Rails, but I&#8217;m not even a programmer. So when I&#8217;m stumped, I&#8217;m fairly stumped. Currently my app is not saving form data when it should be, and redirecting when it shouldn&#8217;t.</p>
<div id="update" style="padding:1em; background-color:#ffc; margin-top:1em;">
<p style="margin-top:0;"><strong>Update</strong></p>
<p>I&#8217;ve actually fixed this now. It was the &#8216;home_path&#8217; route that was causing the problems. Thanks to everyone who made suggestions on Twitter, and particularly Josh Hart for thrashing it out with me over a coffee.</p>
</div>
<p>I&#8217;ve had a few suggestions via Twitter, but still can&#8217;t get it to work. If you happen to be a Rails developer I&#8217;d be eternally grateful for any advice on the code below (for some reason the embedding seems to be screwing up the line numbering).</p>
<p><script src='http://pastie.org/963396.js'></script></p>
<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/04/22/2293/" rel="bookmark">Ruby on Rails beginners club in Birmingham: are you interested?</a><!-- (26.3)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2009/11/01/learn-to-program-using-ruby/" rel="bookmark">Learn to Program (using Ruby)</a><!-- (12.4)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2007/04/03/corrupt-tiddlers/" rel="bookmark">Corrupt tiddlers</a><!-- (8.9)-->
							</li>
					</ol>
			</li>
	</ul>]]></content:encoded>
			<wfw:commentRss>http://citizensheep.com/blog/2010/05/17/scratching-my-head-over-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn to Program (using Ruby)</title>
		<link>http://citizensheep.com/blog/2009/11/01/learn-to-program-using-ruby/</link>
		<comments>http://citizensheep.com/blog/2009/11/01/learn-to-program-using-ruby/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 07:00:02 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Sheep Dip]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://citizensheep.com/blog/2009/11/01/learn-to-program-using-ruby/</guid>
		<description><![CDATA[I&#39;m trying to get my head around Ruby (and Rails, and HAML) and this is proving a good start. Obviously you need Ruby installed first (which wasn&#39;t all that straightforward, not in Windows at any rate), but once you&#39;ve done that it&#39;s quite enjoyable. Visit Learn to Program (using Ruby) Possibly related posts Ruby on [...]<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/04/22/2293/" rel="bookmark">Ruby on Rails beginners club in Birmingham: are you interested?</a><!-- (24.6)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/" rel="bookmark">A Beginner&#39;s Sinatra Tutorial</a><!-- (19.2)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/" rel="bookmark">Creating Database-driven Apps with Sinatra</a><!-- (15.6)-->
							</li>
					</ol>
			</li>
	</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#39;m trying to get my head around Ruby (and Rails, and HAML) and this is proving a good start. Obviously you need Ruby installed first (which wasn&#39;t all that straightforward, not in Windows at any rate), but once you&#39;ve done that it&#39;s quite enjoyable.</p>
<p><a href="http://pine.fm/LearnToProgram/" title="Learn to Program (using Ruby)">Visit <strong>Learn to Program (using Ruby)</strong></a></p>
<ul id="related_posts">
			<li>
					<h4>Possibly related posts</h4>
				 <ol>
								<li>
									<a href="http://citizensheep.com/blog/2010/04/22/2293/" rel="bookmark">Ruby on Rails beginners club in Birmingham: are you interested?</a><!-- (24.6)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/05/31/a-beginners-sinatra-tutorial/" rel="bookmark">A Beginner&#39;s Sinatra Tutorial</a><!-- (19.2)-->
							</li>
								<li>
									<a href="http://citizensheep.com/blog/2010/08/20/hello-sinatra-using-sinatra-in-ruby/" rel="bookmark">Creating Database-driven Apps with Sinatra</a><!-- (15.6)-->
							</li>
					</ol>
			</li>
	</ul>]]></content:encoded>
			<wfw:commentRss>http://citizensheep.com/blog/2009/11/01/learn-to-program-using-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

