<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.3" -->
<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/"
	>

<channel>
	<title>McKinney Station</title>
	<link>http://www.mckinneystation.com</link>
	<description>Ruby on Rails web application development for Dallas/Fort Worth and all of North Texas.</description>
	<pubDate>Sun, 24 Feb 2008 06:35:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>
	<language>en</language>
			<item>
		<title>test/spec docs for Rails</title>
		<link>http://www.mckinneystation.com/2008/02/24/testspec-docs-for-rails/</link>
		<comments>http://www.mckinneystation.com/2008/02/24/testspec-docs-for-rails/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 06:35:08 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[RSpec]]></category>

		<category><![CDATA[Testing]]></category>

		<category><![CDATA[test/spec]]></category>

		<category><![CDATA[documentation]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/02/24/testspec-docs-for-rails/</guid>
		<description><![CDATA[photo by Kriston Lewis
I am a big RSpec fan.  But occasionally, I work on projects that use test/spec.  When I want output the spec documentation with RSpec, I just use rake spec:doc.  With test/spec, I couldn&#8217;t find such a thing.  So I made one and stuck it in lib/tasks/test_spec.rake

Rake::TestTask.new(:specdox) do &#124;t&#124;
 [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/02/map.jpg' alt='map' /><br/><span class="credit">photo by <a href="http://flickr.com/photos/87634257@N00/">Kriston Lewis</a></span></div>
<p>I am a big <a href="http://rspec.info">RSpec</a> fan.  But occasionally, I work on projects that use <a href="http://test-spec.rubyforge.org/">test/spec</a>.  When I want output the spec documentation with RSpec, I just use <code>rake spec:doc</code>.  With test/spec, I couldn&#8217;t find such a thing.  So I made one and stuck it in <code>lib/tasks/test_spec.rake</code></p>
<p><br  class="clearfix" /></p>
<pre><code>Rake::TestTask.new(:specdox) do |t|
  t.options = '--runner=specdox'
  t.libs &lt;&lt; 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
Rake::Task[:specdox].comment = "Generate specdox."</code></pre>
<p>Now I can use <code>rake specdox</code> to see all the wonderful spec documentation!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/02/24/testspec-docs-for-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Joining an awesome team!</title>
		<link>http://www.mckinneystation.com/2008/02/11/joining-an-awesome-team/</link>
		<comments>http://www.mckinneystation.com/2008/02/11/joining-an-awesome-team/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 17:08:54 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/02/11/joining-an-awesome-team/</guid>
		<description><![CDATA[I have been given the opportunity to join a GREAT group of guys.  Starting today, I will be working full-time with Relevance.  So if you are looking for software development, I know a good group of developers who can build exactly what you need.
]]></description>
			<content:encoded><![CDATA[<p>I have been given the opportunity to join <a href="http://www.thinkrelevance.com/about">a GREAT group of guys</a>.  Starting today, I will be working full-time with <a href="http://www.thinkrelevance.com">Relevance</a>.  So if you are looking for software development, I know a good group of developers who can build exactly what you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/02/11/joining-an-awesome-team/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dallas.rb Presentation</title>
		<link>http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/</link>
		<comments>http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 02:37:05 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[RSpec]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Dallas]]></category>

		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/</guid>
		<description><![CDATA[photo by vitalyzator
I presented on RSpec 1.1 tonight at the Dallas.rb.  I don&#8217;t claim to be an expert, I just love my specs (and now stories).
Feel free to take a look at the slides.
]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/02/62012133_17e9735f1f_m.jpg' alt='Train graffiti' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/70475110@N00/">vitalyzator</a></span></div>
<p>I presented on <a href="http://rspec.info">RSpec 1.1</a> tonight at the <a href="http://www.dallasrb.org">Dallas.rb</a>.  I don&#8217;t claim to be an expert, I just love <a href="http://rspec.info/examples.html">my specs</a> (<a href="http://rspec.info/documentation/stories.html">and now stories</a>).</p>
<p>Feel free to take a look at <a href='http://www.mckinneystation.com/wp-content/uploads/2008/02/dallasrb-2008-02-05.pdf' title='RSpec 1.1 PDF from Dallas.rb'>the slides</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/02/05/dallasrb-presentation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I Don&#8217;t Know Shoes (and now I have proof)</title>
		<link>http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/</link>
		<comments>http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/#comments</comments>
		<pubDate>Sat, 12 Jan 2008 16:58:08 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Shoes]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/</guid>
		<description><![CDATA[
Last night I recieved my very own copy of &#8220;Nobody Knows Shoes&#8221; by why the lucky stiff.  Shoes, in case you are wondering, is a small framework for writing GUI applications that can run on multiple OS&#8217;s (Windows, Mac, Linux).  &#8220;Nobody Knows Shoes&#8221; is the API documentation for the framework presented in the [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/01/shoes.png' alt='Nobody Knows Shoes' /></div>
<p>Last night I recieved my very own copy of <a href="http://www.lulu.com/content/1365064">&#8220;Nobody Knows Shoes&#8221;</a> by <a href="http://whytheluckystiff.net/">why the lucky stiff</a>.  <a href="http://code.whytheluckystiff.net/shoes/">Shoes</a>, in case you are wondering, is a small framework for writing GUI applications that can run on multiple OS&#8217;s (Windows, Mac, Linux).  <a href="http://www.lulu.com/content/1365064">&#8220;Nobody Knows Shoes&#8221;</a> is the API documentation for the framework presented in the form of&#8230; well&#8230; comic book/ short stories/ examples&#8230; and that doesn&#8217;t even do it justice.  I played around with Shoes and decided to get the book to see what it was all about.  It is well worth the cost (less than $15, including shipping), if not for the pure entertainment value.  It is also a good reference, as well.</p>
<p>If you haven&#8217;t experienced why or <a href="http://code.whytheluckystiff.net">any of his code</a>, you should definitely take a look.  You will be entertained and <a href="http://poignantguide.net/ruby/">enlightened</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/01/12/i-dont-know-shoes-and-now-i-have-proof/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FixtureReplacement in script/console</title>
		<link>http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/</link>
		<comments>http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 15:54:07 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[RSpec]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/</guid>
		<description><![CDATA[photo by laffy4k
So I came across Dan Manges Fixture Factory as a way to relieve myself of the pain of fixtures for testing.  I don&#8217;t mind fixtures that much, but when I have to start setting up so many different combinations, it gets a little challenging.   In reading through the comments I [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/01/metra.jpg' alt='metra' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/laffy4k/">laffy4k</a></span></div>
<p>So I came across <a href="http://www.dcmanges.com">Dan Manges</a> <a href="http://www.dcmanges.com/blog/38">Fixture Factory</a> as a way to relieve myself of the pain of fixtures for testing.  I don&#8217;t mind fixtures that much, but when I have to start setting up so many different combinations, it gets a little challenging.   In reading through the comments I found that  <a href="http://railsnewbie.com/">Scott Taylor</a> had <a href="http://replacefixtures.rubyforge.org/">implemented it as a plugin</a>.  Now I get all that goodness for my <a href="http://rspec.rubyforge.org">specs</a>.</p>
<p class="clearfix" >
The other day I wanted to play with some things using <code>script/console</code>, but was feeling too lazy to set up all of the data I was going to need to do what I wanted.  Sure enough after looking at the documentation for fixture_replacement, I can use it there too:
</p>
<pre>
<code>  % script/console
  &gt;&gt; include FixtureReplacement
  &gt;&gt; cause = create_cause
  &gt;&gt; user = create_user
  &gt;&gt; cause.users &lt;&lt; user </code>
</pre>
<p>It is really useful for easily setting up your test data in the spec (or test) that you are writing. Instead of having to go off to the fixture files and add new fixtures (and try to remember to set up all of the dependent fixtures that are needed), you can use new_xxx or create_xxx to get an object to test in a valid state with all its dependent data.  </p>
<p>Take a look at the <a href="http://replacefixtures.rubyforge.org/">FixtureReplacement plugin</a> now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/01/10/fixturereplacement-in-scriptconsole/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RESTful Rails and Dreamhost</title>
		<link>http://www.mckinneystation.com/2007/12/17/restful-rails-and-dreamhost/</link>
		<comments>http://www.mckinneystation.com/2007/12/17/restful-rails-and-dreamhost/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 17:33:03 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[RSpec]]></category>

		<category><![CDATA[Web Applications]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Dreamhost]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/12/17/restful-rails-and-dreamhost/</guid>
		<description><![CDATA[photo by woodleywonderworks

I recently upgraded StagingTracks.com to use Rails 2.0.  I was excited about so many of the newest features that it seemed the logical thing to do.  I even decided to upgrade RSpec in the process so I would be able to play with some of the new features there too.  [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/12/train_wreck.jpg' alt='Train Wreck' /><br/><span class="credit">photo by <a href="http://flickr.com/photos/wwworks/">woodleywonderworks</a><br />
</span></div>
<p>I recently upgraded <a href="http://www.stagingtracks.com">StagingTracks.com</a> to use <a href="http://weblog.rubyonrails.com/2007/12/7/rails-2-0-it-s-done">Rails 2.0</a>.  I was excited about so many of the newest features that it seemed the logical thing to do.  I even decided to upgrade <a href="http://rspec.rubyforge.org">RSpec</a> in the process so I would be able to play with <a href="http://blog.davidchelimsky.net/articles/2007/12/14/rspec-1-1">some of the new features</a> there too.  </p>
<p>Unfortunately, despite extensive local spec&#8217;ing, when I <a href="http://capify.org/">deployed the app</a> to Dreamhost, <a href="http://www.stagingtracks.com/posts/view/a_minor_glitch">things did not go as planned</a>.  I was using <a href="http://piston.rubyforge.org/">piston to manage my Rails in the app and all of my plugins</a>, so I didn&#8217;t need to worry about which gems were installed on the server.  What I found was that when users tried to submit new information using the forms on the site, nothing would happen.  Let me correct that: It would look like something happened, but no data was submitted.</p>
<h2>So what was the problem?</h2>
<p>I first started by watching the <code>production.log</code> to see if the data was even getting submitted.  As expected, nothing was coming through.  I then used the <a href="https://addons.mozilla.org/firefox/addon/966">Tamper Data plugin</a> for Firefox to see if I if the data was getting out of the browser.  It was, but something interesting appeared.  I saw a 301 Redirect when the page was submitted.  Odd.  Especially since the application wasn&#8217;t seeing the data and there were no redirects in the production.log.  </p>
<p>So I started looking in the http <code>access.log</code> to see why the data wasn&#8217;t coming through to the app.  What I saw was surprising:</p>
<pre>
<code>- - [16/Dec/2007:19:24:30 -0800] "POST /shops HTTP/1.1" 301 591 "http://www.stagingtracks.com/shops/new" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
- - [16/Dec/2007:19:24:30 -0800] "GET /shops/ HTTP/1.1" 200 319 "http://www.stagingtracks.com/shops/new" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"</code></pre>
<p>It looked like the POST (which goes to the &#8216;create&#8217; method using Rails RESTful approach) was being redirected to &#8216;/shops/&#8217;.  The browser would then call &#8216;/shops/ &#8216; with a GET (which is the &#8216;index&#8217; action).  And the form submission never got through.  Now I was perplexed.  Why would the web server being sending the 301 Redirect?</p>
<p>It became a little clearer when I saw this in the logs as well:</p>
<pre>
<code>- - [16/Dec/2007:19:15:11 -0800] "GET /shops HTTP/1.1" 301 591 "http://www.stagingtracks.com/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"
- - [16/Dec/2007:19:15:11 -0800] "GET /shops/ HTTP/1.1" 200 89174 "http://www.stagingtracks.com/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"</code></pre>
<p>For some reason, the web server was causing 301 Redirects when the trailing slash was missing!  Now I had heard of <a href="http://www.google.com/search?q=trailing+slash+rails">the trailing slash problem</a>, but couldn&#8217;t find a suitable solution that would be easy to implement.</p>
<h2>So How Do You Fix It?</h2>
<p>I am so glad I am surrounded by lots of smart people.  A quick conversation with my friend <a href="http://robsanheim.com/">Rob Sanheim</a> turned up <a href="http://mephisto.stikipad.com/help/show/Developer+Tips">the solution</a>.  </p>
<p>I added the following to my <code>.htaccess</code> file:</p>
<pre>
<code>DirectorySlash Off</code>
</pre>
<p>I added it after the <code>Options +FollowSymLinks +ExecCGI</code> and before the <code>RewriteEngine On</code></p>
<p>Now things are back to normal again.  I am now able to get back to <a href="http://www.stagingtracks.com">connecting model railroaders</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/12/17/restful-rails-and-dreamhost/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Pay For What You Use</title>
		<link>http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/</link>
		<comments>http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 04:44:52 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Web Applications]]></category>

		<category><![CDATA[Entrepreneurial]]></category>

		<category><![CDATA[Dallas]]></category>

		<category><![CDATA[North Texas]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/</guid>
		<description><![CDATA[My friend, Chris Gay, is a finalist in the Amazon Web Services Startup Challenge with his company, MileMeter.  I love the concept of only paying for the auto insurance I am going to use.  Both my wife and I work out of the home and therefore our cars sit in the garage alot. [...]]]></description>
			<content:encoded><![CDATA[<p>My friend, Chris Gay, is a finalist in the <a href="http://developer.amazonwebservices.com/connect/amazon_startupchallenge.jsp">Amazon Web Services Startup Challenge</a> with his company, <a href="http://www.milemeter.com">MileMeter</a>.  I love the concept of only paying for the auto insurance I am going to use.  Both my wife and I work out of the home and therefore our cars sit in the garage alot.  But I still have to pay the same rates as my neighbors who drive to downtown Dallas everyday.  For both cars!  </p>
<p>So now I urge you to <a href="http://developer.amazonwebservices.com/connect/amazon_startupchallenge.jsp">go and vote for Chris and MileMeter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/12/01/pay-for-what-you-use/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ahhhh&#8230;.  Room To Move</title>
		<link>http://www.mckinneystation.com/2007/11/09/ahhhh-room-to-move/</link>
		<comments>http://www.mckinneystation.com/2007/11/09/ahhhh-room-to-move/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 18:25:48 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[Entrepreneurial]]></category>

		<category><![CDATA[Development Environment]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/11/09/ahhhh-room-to-move/</guid>
		<description><![CDATA[I got a Dell 2007WFP Ultrasharp 20&#8243; LCD monitor this week using BINalert.com.  
First, about the monitor and setup.  It is a great monitor, nice and bright!  My friend, Matt, encouraged me to spend a little more and get the Ultrasharp.  I am glad I did (although I didn&#8217;t pay much [...]]]></description>
			<content:encoded><![CDATA[<p>I got a Dell 2007WFP Ultrasharp 20&#8243; LCD monitor this week using <a href="http://www.binalert.com">BINalert.com</a>.  </p>
<p>First, about the monitor and setup.  It is a great monitor, nice and bright!  My friend, Matt, encouraged me to spend a little more and get the Ultrasharp.  I am glad I did (although I didn&#8217;t pay much more, see below).  I REALLY love the portrait mode.  In the picture I have <a href="http://www.mailplaneapp.com">Mailplane</a>, <a href="http://www.karppinen.fi/pyro/">Pyro</a>, <a href="http://www.skype.com">Skype</a>, and <a href="http://iconfactory.com/software/twitterrific">Twitterific</a> all stacked nicely.  And it doesn&#8217;t feel crowded.  I use <a href="http://virtuedesktops.info/">VirtueDesktops</a> and  keep all my work on the another virtual desktop.  On the &#8220;work&#8221; desktop I put <a href="http://macromates.com/">Textmate</a> and can see lots of lines of code.  Plus I still have room to keep open console windows at the bottom to see <a href="http://www.zenspider.com/ZSS/Products/ZenTest/">autotest results</a>, server logs, etc.  My browser can stay open on the laptop for easy inspection of whatever I am developing.  </p>
<p><img src='http://www.mckinneystation.com/wp-content/uploads/2007/11/desktop.JPG' alt='Desktop' /></p>
<p>Now about <a href="http://www.binalert.com">BINalert.com</a>.  (Disclosure: I built this site with a friend and I do make money with it.)  BINalert lets you setup up alerts so you can get notifications on new Buy-It-Now auctions on eBay.  There are lots of items listed with Buy-It-Now prices that are REALLY good deals.  For example, this monitor.  I setup an alert to watch for Dell 2007WFP Ultrasharp monitors with a Buy-It-Now price of $250 or less.  As soon as this one was listed, I got an email letting me know.  I went and checked it out (it was used but in great condition), and a week later I have my new monitor (or at least it&#8217;s new to me).  And I saved about $150 in the process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/11/09/ahhhh-room-to-move/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ping Pong at the Dallas.rb</title>
		<link>http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/</link>
		<comments>http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 02:22:29 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[RSpec]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[Dallas]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/</guid>
		<description><![CDATA[photo by chick_e_pooo

Last night, Adam Keys and I did a little ping pong pairing for the Dallas.rb meeting.  It was fun.  Of course it highlighted how much I have to jump back to the Ruby docs to get much done.  But I don&#8217;t see that as a problem, since it leaves more [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/11/pingpong.jpg' alt='ping pong' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/chickie-poo/">chick_e_pooo</a><br/><br/><br />
</span></div>
<p>Last night, <a href="http://www.therealadam.com">Adam Keys</a> and I did a little <a href="http://c2.com/cgi/wiki?PairProgrammingPingPongPattern">ping pong pairing</a> for <a href="http://www.dallasrb.org">the Dallas.rb meeting</a>.  It was fun.  Of course it highlighted how much I have to jump back to <a href="http://www.rubybrain.com">the Ruby docs</a> to get much done.  But I don&#8217;t see that as a problem, since it leaves more room in my head for other things.  It also showed my lack of regex-fu.</p>
<p>Here is <a href="http://groups.google.com/group/dallasrb/browse_thread/thread/83005bf4dc9dac6a">the code we worked on</a>.  We were trying to solve <a href="http://www.rubyquiz.com/quiz122.html">the Ruby Quiz Credit Card problem</a>, and got most of the way through.  The fun part about pairing was bouncing ideas off of each other.  Others in attendance were also helpful with their suggestions.  It was especially interesting as we looked back over the code and discussed even more ways to clean it up.</p>
<p>Would I do it again?  You bet.  But I think next time, I would like to work on something that I am more comfortable with, like a Rails related app.  <a href="http://www.mckinneystation.com/2007/04/25/specify-first-test-last-if-ever/">I love writing specs for that.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/11/08/ping-pong-at-the-dallasrb/feed/</wfw:commentRss>
		</item>
		<item>
		<title>One Way I Got JQuery To Play Nicely With Rails</title>
		<link>http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/</link>
		<comments>http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/#comments</comments>
		<pubDate>Thu, 13 Sep 2007 16:51:47 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[JQuery]]></category>

		<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/</guid>
		<description><![CDATA[photo by dave_mcmt

I love JQuery!  I did a short 10-15 minute presentation at the last Dallas.rb to let others in on the joys of using JQuery.
But one thing that doesn&#8217;t work right when using JQuery with Rails applications is the JQuery AJAX features and Rails respond_to.  It turns out the Rails it looking [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/09/bridge.jpg' alt='Bridge' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/dave_mcmt/">dave_mcmt</a><br/><br />
</span></div>
<p>I love JQuery!  I did a <a href="http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/">short 10-15 minute presentation at the last Dallas.rb</a> to let others in on the joys of using JQuery.</p>
<p>But one thing that doesn&#8217;t work right when using JQuery with Rails applications is the JQuery AJAX features and Rails respond_to.  It turns out the Rails it looking for a specific request header, but JQuery sends something different one.  </p>
<p  class="clearfix">It is easily solved with this at the top of your application.js file:</p>
<pre>
<code>$.ajaxSetup({
  beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");}
});</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
