<?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>Able Technology &#187; rails</title>
	<atom:link href="http://www.abletech.co.nz/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abletech.co.nz</link>
	<description>Web Application Programmers and Consultants</description>
	<lastBuildDate>Tue, 06 Dec 2011 03:01:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>A Cool RoR Job In A Cool City!</title>
		<link>http://www.abletech.co.nz/2010/11/a-cool-ror-job-in-a-cool-city/</link>
		<comments>http://www.abletech.co.nz/2010/11/a-cool-ror-job-in-a-cool-city/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 03:35:48 +0000</pubDate>
		<dc:creator>carl</dc:creator>
				<category><![CDATA[jobs]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[wellington]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=704</guid>
		<description><![CDATA[If you are a Ruby On Rails developer looking for a cool job, working on cool projects, in a cool city &#8211; then we’ve got the job for you! Able Technology is a dynamic and growing web application development company located in, Cool-with-a-capital-C, Wellington, New Zealand (as rated in Lonely Planet’s top 10 cities for [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a Ruby On Rails developer looking for a cool job, working on cool projects, in a cool city &#8211; then we’ve got the job for you! Able Technology is a dynamic and growing web application development company located in, Cool-with-a-capital-C, Wellington, New Zealand (as rated in <a href="http://www.lonelyplanet.com/usa/new-york-city/travel-tips-and-articles/76165" target="_blank">Lonely Planet’s top 10 cities for 2011</a>).</p>
<p>We are looking for a new team member who has experience  developing and supporting Ruby on Rails applications (Ruby, Ruby on Rails Framework, HTML, Javascript, JQuery, AJAX, Capistrino and Git). In addition a working knowledge of Linux and MySQL and/or PostgreSQL is highly desired.</p>
<p>Able Technology develops and supports cool applications for example:</p>
<table cellspacing="8" cellpadding="8">
<tbody>
<tr>
<td><strong>Twitter apps:</strong></td>
<td><strong>Google Maps:</strong></td>
</tr>
<tr>
<td><a href="http://www.abletech.co.nz/wp-content/uploads/2010/11/photo.png" target="_blank"><img class="alignleft size-full wp-image-718" title="photo" src="http://www.abletech.co.nz/wp-content/uploads/2010/11/photo.png" alt="" width="192" height="288" /></a></td>
<td><a href="http://www.abletech.co.nz/wp-content/uploads/2010/11/CWJP.png" target="_blank"><img class="alignleft size-full wp-image-706" title="CWJP" src="http://www.abletech.co.nz/wp-content/uploads/2010/11/CWJP.png" alt="" width="410" height="266" /></a>
</td>
</tr>
<tr>
<td><a href="http://twitter.com/nzposttracking" target="_blank">http://twitter.com/nzposttracking</a></td>
<td><a href="http://www.journeyplanner.org.nz/" target="_blank">http://www.journeyplanner.org.nz/</a></td>
</tr>
<tr>
<td><strong>SaaS Apps:</strong></td>
<td></td>
</tr>
<tr>
<td><a href="http://www.abletech.co.nz/wp-content/uploads/2010/11/BackItUpMate.png" target="_blank"><img class="alignleft size-full wp-image-707" title="BackItUpMate" src="http://www.abletech.co.nz/wp-content/uploads/2010/11/BackItUpMate.png" alt="" width="356" height="266" /></a></td>
<td><a href="http://www.abletech.co.nz/wp-content/uploads/2010/11/AddressFinder.png" target="_blank"><img class="alignleft size-full wp-image-708" title="AddressFinder" src="http://www.abletech.co.nz/wp-content/uploads/2010/11/AddressFinder.png" alt="" width="352" height="266" /></a></td>
</tr>
<tr>
<td><a href="http://www.backitupmate.co.nz/" target="_blank">http://www.backitupmate.co.nz/</a></td>
<td><a href="http://www.addressfinder.co.nz/" target="_blank">http://www.addressfinder.co.nz</a></td>
</tr>
<tr>
<td><a href="http://www.abletech.co.nz/wp-content/uploads/2010/11/ShareSight.png" target="_blank"><img class="alignleft size-full wp-image-709" title="ShareSight" src="http://www.abletech.co.nz/wp-content/uploads/2010/11/ShareSight.png" alt="" width="351" height="266" /></a></td>
<td></td>
</tr>
<tr>
<td><a href="http://www.sharesight.co.nz/" target="_blank">http://www.sharesight.co.nz</a></td>
<td></td>
</tr>
</tbody>
</table>
<p>If you think you would be a great addition to the Able Technology team please email: <a class="email" href="mailto:carl.penwarden@abletech.co.nz">carl.penwarden@abletech.co.nz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/11/a-cool-ror-job-in-a-cool-city/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby Enterprise Edition on Mac OSX</title>
		<link>http://www.abletech.co.nz/2009/06/ree-on-mac-osx/</link>
		<comments>http://www.abletech.co.nz/2009/06/ree-on-mac-osx/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 09:33:49 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=335</guid>
		<description><![CDATA[This is quite trivial and very easy. I wanted to use the same version of ruby on my mac as is running on our production servers (Ruby Enterprise Edition). Firstly, do a gem list and keep this information. You will need to reinstall all your gems once you have successfully installed REE. Download REE from [...]]]></description>
			<content:encoded><![CDATA[<p>This is quite trivial and very easy. I wanted to use the same version of ruby on my mac as is running on our production servers (Ruby Enterprise Edition).</p>
<p>Firstly, do a
<pre>gem list</pre>
<p> and keep this information. You will need to reinstall all your gems once you have successfully installed REE.</p>
<p>Download REE from <a href="http://www.rubyenterpriseedition.com/">http://www.rubyenterpriseedition.com/</a></p>
<pre>tar xvfz ruby-enterprise-X.X.X</pre>
<pre>sudo ./ruby-enterprise-X.X.X/installer</pre>
<p>I suggest changing the default location to just /opt/ruby-enterprise &#8211; as you are unlikely to need to roll back the symbolic links in your development environment.</p>
<p>Once it is installed, then you need to make sure that you use it for all your gems, ruby, rake tasks. To do this we will sym link in all the executables into /usr/bin</p>
<p>Find any previous versions of ruby</p>
<pre>whereis ruby</pre>
<p> and
<pre>which ruby</pre>
<p>Cleanup &#8211; backup and remove any old versions and the associated ruby, gems, rake, irb, cap, capify, erb so they are not on your path.</p>
<p>Then sym link from /usr/bin to  opt/ruby-enterprise/bin with all the executables that you may require&#8230;.</p>
<pre>
sudo ln -s -f /opt/ruby-enterprise/bin/ruby /usr/bin/ruby
sudo ln -s -f /opt/ruby-enterprise/bin/cap    /usr/bin/cap
sudo ln -s -f /opt/ruby-enterprise/bin/capify /usr/bin/capify
sudo ln -s -f /opt/ruby-enterprise/bin/erb    /usr/bin/erb
sudo ln -s -f /opt/ruby-enterprise/bin/gem    /usr/bin/gem
sudo ln -s -f /opt/ruby-enterprise/bin/irb    /usr/bin/irb
sudo ln -s -f /opt/ruby-enterprise/bin/rails  /usr/bin/rails
sudo ln -s -f /opt/ruby-enterprise/bin/rake   /usr/bin/rake
sudo ln -s -f /opt/ruby-enterprise/bin/rdoc   /usr/bin/rdoc
</pre>
<p>Do a gem list to see what ruby-enterprise came bundled with.</p>
<p>Now you will need to install all your gems again &#8211; that you noted earlier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/06/ree-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>False-positive validation warnings</title>
		<link>http://www.abletech.co.nz/2009/03/false-positive-validation-warnings/</link>
		<comments>http://www.abletech.co.nz/2009/03/false-positive-validation-warnings/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 00:48:21 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=197</guid>
		<description><![CDATA[I had been getting some validation warnings when running some of my specs. The W3 validator confirmed that my xHTML was valid. ignoring attempt to close div with input opened at byte 6028, line 108 closed at byte 6131, line 109 attributes at open: {&#8220;class&#8221;=>&#8221;form_field&#8221;} text around open: &#8220;r\&#8221;> \n \n \n]]></description>
			<content:encoded><![CDATA[<p>I had been getting some validation warnings when running some of my specs. The W3 validator confirmed that my xHTML was valid.</p>
<p><textarea name="code" class="ruby"><br />
ignoring attempt to close div with input<br />
  opened at byte 6028, line 108<br />
  closed at byte 6131, line 109<br />
  attributes at open: {&#8220;class&#8221;=>&#8221;form_field&#8221;}<br />
  text around open: &#8220;r\&#8221;></div>
</div>
<p>\n
<div class=\"form_fie"<br />
  text around close: "mit\" value=\"Log in\"></input>
<p>\n</p></div>
<p>\n</di"<br />
</textarea></p>
<p>After some googling of the problem, it turns out there is a difference between how xhtml and html documents are handled. Essentially, you need to tell the parser that the document is xHTML rather than HTML. More details <a href="http://marklunds.com/articles/one/336">here</a>, <a href="http://weblog.jamisbuck.org/2007/1/4/assert_xml_select">here</a>, and <a href="http://dev.rubyonrails.org/ticket/1937">here</a>.</p>
<p>The solution is to tell RSpec that the document is XML based. The options given in the links above work for RUnit based tests. Taking a look at the rspec source, it is checking to see if the response is XML based by noting the Content-Type header record. So, here&#8217;s the solution I used:</p>
<p><textarea name="code" class="ruby"><br />
before(:each) do<br />
  get :new, :id => scenarios(:abletech_pre_clicked_links).id<br />
  response.headers['Content-Type'] = <img src='http://www.abletech.co.nz/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> ml<br />
end<br />
</textarea></p>
<p>Now, when I run my specs, it correctly parses the response as XHTML and passes validation without any warnings.</p>
<p><textarea name="code" class="ruby"><br />
it &#8216;should show two forms&#8217; do<br />
  response.should have_tag(&#8216;div.form_step&#8217;, 2)<br />
end<br />
</textarea></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/03/false-positive-validation-warnings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
