<?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>Dr Nic &#187; RadRails</title>
	<atom:link href="http://drnicwilliams.com/category/radrails/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Tue, 03 Aug 2010 23:44:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>RSpec snippets/templates for RadRails</title>
		<link>http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/</link>
		<comments>http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 19:10:48 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[RadRails]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/</guid>
		<description><![CDATA[Using RadRails? Using RSpec? Missing some snippet/template love? 70 RSpec Textmate snippets have been ported for your rspec-ing pleasure by Kosmas Schütz. Download them and install them. Related posts:RadRails Templates Cheat Sheets Now that RadRails is blessed with 100s of templates/snippets the...RadRails Templates on Trac I have started to cleanup the Ruby and RHTML templates...Make [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/' rel='bookmark' title='Permanent Link: RadRails Templates Cheat Sheets'>RadRails Templates Cheat Sheets</a> <small>Now that RadRails is blessed with 100s of templates/snippets the...</small></li><li><a href='http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/' rel='bookmark' title='Permanent Link: RadRails Templates on Trac'>RadRails Templates on Trac</a> <small>I have started to cleanup the Ruby and RHTML templates...</small></li><li><a href='http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/' rel='bookmark' title='Permanent Link: Make RadRails look like TextMate'>Make RadRails look like TextMate</a> <small> One my very early posts (3 months ago) might...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p><a class="imagelink" href="http://radrailstemplates.com" title="RadRails adds RSpec templates"><img id="image238" src="http://drnicwilliams.com/wp-content/uploads/2007/11/radrails-templates-rspec1.png" alt="RadRails adds RSpec templates" /></a></p>
<p>Using RadRails? Using RSpec? Missing some snippet/template love?</p>
<p>70 RSpec Textmate snippets have been ported for your rspec-ing pleasure by Kosmas Schütz.</p>
<p><a href="http://radrailstemplates.com/svn/templates/trunk/rspec-templates.xml">Download them</a> and <a href="http://radrailstemplates.com/radrailstemplates/wiki/TemplateInstallation">install them</a>.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/' rel='bookmark' title='Permanent Link: RadRails Templates Cheat Sheets'>RadRails Templates Cheat Sheets</a> <small>Now that RadRails is blessed with 100s of templates/snippets the...</small></li><li><a href='http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/' rel='bookmark' title='Permanent Link: RadRails Templates on Trac'>RadRails Templates on Trac</a> <small>I have started to cleanup the Ruby and RHTML templates...</small></li><li><a href='http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/' rel='bookmark' title='Permanent Link: Make RadRails look like TextMate'>Make RadRails look like TextMate</a> <small> One my very early posts (3 months ago) might...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>RadRails Templates Cheat Sheets</title>
		<link>http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/</link>
		<comments>http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 03:47:34 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[RadRails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/</guid>
		<description><![CDATA[Now that RadRails is blessed with 100s of templates/snippets the challenge is now knowing what is available. Several people have had a crack at this: XSL conversions of the template XML into HTML, and Ruby scripts to convert the XML into text. The nicest, most completest solution (that is, it is awesome and yet I [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/' rel='bookmark' title='Permanent Link: RSpec snippets/templates for RadRails'>RSpec snippets/templates for RadRails</a> <small> Using RadRails? Using RSpec? Missing some snippet/template love? 70...</small></li><li><a href='http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/' rel='bookmark' title='Permanent Link: RadRails Templates on Trac'>RadRails Templates on Trac</a> <small>I have started to cleanup the Ruby and RHTML templates...</small></li><li><a href='http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/' rel='bookmark' title='Permanent Link: Make RadRails look like TextMate'>Make RadRails look like TextMate</a> <small> One my very early posts (3 months ago) might...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Now that RadRails is blessed with 100s of <a href="http://radrailstemplates.com">templates/snippets</a> the challenge is now knowing what is available. Several people have had a crack at this: XSL conversions of the template XML into HTML, and Ruby scripts to convert the XML into text.</p>
<p>The nicest, most completest solution (that is, it is awesome and yet I didn&#8217;t have to do anything) is by <a href="http://arandonohue.com/2007/1/25/radrails-cheat-sheets-now-online">Aran Donohue</a>.</p>
<h2>Cheat Sheets</h2>
<ul>
<li>RHTML on <a href="http://radrailstemplates.com/radrailstemplates/wiki/RHTMLTemplates">radrailstemplates.com</a> or on <a href="http://cheat.errtheblog.com/s/radrails_rhtml">cheat.errtheblog.com</a></li>
<li>Ruby on <a href="http://radrailstemplates.com/radrailstemplates/wiki/RubyTemplates">radrailstemplates.com</a> or on <a href="http://cheat.errtheblog.com/s/radrails_ruby">hcheat.errtheblog.com</a></li>
</ul>
<h2>Rapid Updates</h2>
<p>Aran now wields a rake field to update these two wiki sites whenever the templates/snippets change. Sweet cheating goodness.</p>
<h2>Sneak a peek</h2>
<p>Cop a glimpse at Aran&#8217;s cheating via Subversion:<br />
<a href="http://arandonohue.com/svn/projects/EclipseCheatSheetMaker/ ">http://arandonohue.com/svn/projects/EclipseCheatSheetMaker/</a></p>
<h2>Prayer to the God of Cheating</h2>
<p>Amen.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/' rel='bookmark' title='Permanent Link: RSpec snippets/templates for RadRails'>RSpec snippets/templates for RadRails</a> <small> Using RadRails? Using RSpec? Missing some snippet/template love? 70...</small></li><li><a href='http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/' rel='bookmark' title='Permanent Link: RadRails Templates on Trac'>RadRails Templates on Trac</a> <small>I have started to cleanup the Ruby and RHTML templates...</small></li><li><a href='http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/' rel='bookmark' title='Permanent Link: Make RadRails look like TextMate'>Make RadRails look like TextMate</a> <small> One my very early posts (3 months ago) might...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>RadRails Templates on Trac</title>
		<link>http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/</link>
		<comments>http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 11:21:07 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[RadRails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/</guid>
		<description><![CDATA[I have started to cleanup the Ruby and RHTML templates previously released. They are now stored on SVN so you can get latest versions. They now have a ticketing system for improvements. They now have a Wiki for everyone to help everyone. Summary RadRails Templates now has a home: http://radrailstemplates.com/ Kyle from the RadRails is [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2008/01/31/get-ready-for-the-textmate-trundle-to-rails-20-bundle/' rel='bookmark' title='Permanent Link: Get ready for the TextMate &#8220;Trundle to Rails 2.0 Bundle&#8221;'>Get ready for the TextMate &#8220;Trundle to Rails 2.0 Bundle&#8221;</a> <small> Have you noticed lately that the Rails TextMate git...</small></li><li><a href='http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/' rel='bookmark' title='Permanent Link: RSpec snippets/templates for RadRails'>RSpec snippets/templates for RadRails</a> <small> Using RadRails? Using RSpec? Missing some snippet/template love? 70...</small></li><li><a href='http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/' rel='bookmark' title='Permanent Link: RadRails Templates Cheat Sheets'>RadRails Templates Cheat Sheets</a> <small>Now that RadRails is blessed with 100s of templates/snippets the...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I have started to cleanup the Ruby and RHTML templates <a href="http://drnicwilliams.com/2006/11/06/post-halloween-radrails-trick-all-textmate-snippets-available/">previously released</a>. They are now stored on SVN so you can get latest versions. They now have a ticketing system for improvements. They now have a Wiki for everyone to help everyone.</p>
<h3>Summary</h3>
<p>RadRails Templates now has a home: <a href="http://radrailstemplates.com/">http://radrailstemplates.com/</a></p>
<p>Kyle from the RadRails is busy making improvements to template support for the next release, and has promised that the new and improved templates will also be <a href="http://radrails.org/blog/2006/11/13/dr-nic-cures-template-cancer">included in it</a>. Bonza.</p>
<h3>Cutting edge releases</h3>
<p>You can get the latest edge releases of the templates via Subversion: <a href="http://radrailstemplates.com/svn/templates/trunk/">http://radrailstemplates.com/svn/templates/trunk/</a></p>
<h3>Juicy new improvements</h3>
<p>I&#8217;ve cleaned up a bunch of the original templates, and started to add new ones that seem generally relevant to everyone: see the <a href="http://www.radrailstemplates.com/radrailstemplates/browser/trunk/CHANGELOG.txt">CHANGELOG.txt</a></p>
<h3>Extensions and modularisation of templates</h3>
<p>Currently the templates come in two big XML files: one for Ruby editor, and one for the RHTML editor. On the plus side, this makes importing new templates easy: you delete all the old templates and them import the new file, and go for a coffee. </p>
<p>On the negative side, this infers all new templates need to go into the same file and thus are imposed upon everyone. Instead there might be templates associated with rails plugins, that aren&#8217;t generic.</p>
<p>I don&#8217;t have a good plan for what to do about this yet. In the short term, submit any patches or new template files to <a href="http://radrailstemplates.com/radrailstemplates/newticket">trac</a> and we&#8217;ll figure it all out in due course.</p>
<p>If you want to create patches of your own templates see below.</p>
<p>Similarly, if you add new templates locally and <em>don&#8217;t</em> want to share but don&#8217;t want to lose them each time you upgrade, my initial suggestion is to do the following:</p>
<ol>
<li>Checkout the templates from svn: <code>svn co http://radrailstemplates.com/svn/templates/trunk/ radrailstemplates</code></li>
<li>Do an initial export of your local templates that you want to keep into a separate XML file</li>
<li>Delete all local templates</li>
<li>Import the radrailstemplates/ruby-templates.xml file, if its the Ruby editor, else the rhtml-templates.xml file for the RHTML editor</li>
<li>Import your personal, saved templates on top</li>
<li>Export everything on top of the radrailstemplates/ruby-templates.xml file (if its the Ruby editor, etc). Now you have modified your local copy of the templates.</li>
<li>Now create a patch of the differences using svn.</li>
<li>Attach the patch to a trac ticket. A description of each template added would be very handy as its very difficult reading the xml patch.</li>
<li>Alternately, keep the patch in a safe place for a rainy day. But if you don&#8217;t want to share your templates you will hopefully be able to continually do <code>svn update</code> on the template files and your templates should be kept for you (unless you get nasty conflicts)</li>
</ol>
<h3>Port 8669</h3>
<p><strong>FIXED</strong> You can happily ignore this section, or read Ry&#8217;s comment for solution.</p>
<p>My skills with apache are apparently lacking. Why does the raw port number keep appearing in the url?</p>
<p>Its hosted on TextDrive, and the <code>.htaccess</code> file in my <code>/web/public</code> folder is:</p>
<pre>
RewriteEngine On
RewriteRule ^trac_common/(.*) http://radrailstemplates.com:8669/trac_common/$1 [P]
RewriteRule ^trac/?(.*) http://radrailstemplates.com:8669/$1 [P]
RewriteRule ^radrailstemplates(.*) http://radrailstemplates.com:8669/radrailstemplates$1 [P]
</pre>
<p>How do I fix this?</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2008/01/31/get-ready-for-the-textmate-trundle-to-rails-20-bundle/' rel='bookmark' title='Permanent Link: Get ready for the TextMate &#8220;Trundle to Rails 2.0 Bundle&#8221;'>Get ready for the TextMate &#8220;Trundle to Rails 2.0 Bundle&#8221;</a> <small> Have you noticed lately that the Rails TextMate git...</small></li><li><a href='http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/' rel='bookmark' title='Permanent Link: RSpec snippets/templates for RadRails'>RSpec snippets/templates for RadRails</a> <small> Using RadRails? Using RSpec? Missing some snippet/template love? 70...</small></li><li><a href='http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/' rel='bookmark' title='Permanent Link: RadRails Templates Cheat Sheets'>RadRails Templates Cheat Sheets</a> <small>Now that RadRails is blessed with 100s of templates/snippets the...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Make RadRails look like TextMate</title>
		<link>http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/</link>
		<comments>http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/#comments</comments>
		<pubDate>Wed, 08 Nov 2006 09:33:20 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Link]]></category>
		<category><![CDATA[RadRails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/</guid>
		<description><![CDATA[One my very early posts (3 months ago) might be useful to RadRailers if you haven&#8217;t already seen it: how to make RadRails text editors look like TextMate. Its full of updates, comments and demos. Related posts:Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers In some TextMate bundles, if you save [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2010/06/01/validate-and-save-your-ruby-in-textmate-with-secret-rubinus-superpowers/' rel='bookmark' title='Permanent Link: Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers'>Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers</a> <small>In some TextMate bundles, if you save a file it...</small></li><li><a href='http://drnicwilliams.com/2008/06/11/using-ruby-within-textmate-snippets-and-commands/' rel='bookmark' title='Permanent Link: Using Ruby within TextMate snippets and commands'>Using Ruby within TextMate snippets and commands</a> <small>I didn&#8217;t know you could run Ruby within TextMate snippets....</small></li><li><a href='http://drnicwilliams.com/2008/05/12/textmate-bundles-for-merb/' rel='bookmark' title='Permanent Link: TextMate bundles for Merb'>TextMate bundles for Merb</a> <small>If you are using TextMate (OS X) or E Text...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://drnicwilliams.com/wp-content/uploads/2006/08/radrails-with-textmate-theme.png" class="thickbox"><img id="image34"  width=450 src="http://drnicwilliams.com/wp-content/uploads/2006/08/radrails-with-textmate-theme.png" alt="Radrails with Textmate theme" /></a></p>
<p>One my very early posts (3 months ago) might be useful to RadRailers if you haven&#8217;t already seen it: how to make RadRails text editors <a href="http://drnicwilliams.com/2006/08/08/textmate-theme-for-radrails/">look like TextMate</a>.</p>
<p>Its full of updates, comments and demos.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2010/06/01/validate-and-save-your-ruby-in-textmate-with-secret-rubinus-superpowers/' rel='bookmark' title='Permanent Link: Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers'>Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers</a> <small>In some TextMate bundles, if you save a file it...</small></li><li><a href='http://drnicwilliams.com/2008/06/11/using-ruby-within-textmate-snippets-and-commands/' rel='bookmark' title='Permanent Link: Using Ruby within TextMate snippets and commands'>Using Ruby within TextMate snippets and commands</a> <small>I didn&#8217;t know you could run Ruby within TextMate snippets....</small></li><li><a href='http://drnicwilliams.com/2008/05/12/textmate-bundles-for-merb/' rel='bookmark' title='Permanent Link: TextMate bundles for Merb'>TextMate bundles for Merb</a> <small>If you are using TextMate (OS X) or E Text...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2006/11/08/make-radrails-look-like-textmate/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Post-Halloween RadRails trick &#8211; all TextMate snippets available</title>
		<link>http://drnicwilliams.com/2006/11/06/post-halloween-radrails-trick-all-textmate-snippets-available/</link>
		<comments>http://drnicwilliams.com/2006/11/06/post-halloween-radrails-trick-all-textmate-snippets-available/#comments</comments>
		<pubDate>Mon, 06 Nov 2006 14:30:29 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RadRails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Translation]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/06/post-halloween-radrails-trick-all-textmate-snippets-available/</guid>
		<description><![CDATA[HTML snippets 48 Ruby snippets 199 I tease myself with things I can&#8217;t have &#8211; like watching TextMate demo videos. One wonderful video shows a test-driven design demonstration by James Edward Gray II where he used Textmate snippets to generate the various assert statements. For example: ase => assert_equal(expected, actual) asn => assert_nil(instance) asm => [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2010/06/01/validate-and-save-your-ruby-in-textmate-with-secret-rubinus-superpowers/' rel='bookmark' title='Permanent Link: Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers'>Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers</a> <small>In some TextMate bundles, if you save a file it...</small></li><li><a href='http://drnicwilliams.com/2008/06/11/using-ruby-within-textmate-snippets-and-commands/' rel='bookmark' title='Permanent Link: Using Ruby within TextMate snippets and commands'>Using Ruby within TextMate snippets and commands</a> <small>I didn&#8217;t know you could run Ruby within TextMate snippets....</small></li><li><a href='http://drnicwilliams.com/2008/05/12/textmate-bundles-for-merb/' rel='bookmark' title='Permanent Link: TextMate bundles for Merb'>TextMate bundles for Merb</a> <small>If you are using TextMate (OS X) or E Text...</small></li></ol>]]></description>
			<content:encoded><![CDATA[
<p><img id="image113" src="http://drnicwilliams.com/wp-content/uploads/2006/11/textmate-to-radrails.png" alt="Textmate Snippets to Radrails" /></p>
<div>
<div class="version clickable" onclick='document.location = "http://drnicwilliams.com/wp-content/uploads/2006/11/rhtml-rr-templates.xml"; return false'>
<div>HTML snippets</div>
<div class="numbers">48</div>
</div>
<div class="version clickable" onclick='document.location = "http://drnicwilliams.com/wp-content/uploads/2006/11/ruby-rr-templates.xml"; return false'>
<div>Ruby snippets</div>
<div class="numbers">199</div>
</div>
<p>I tease myself with things I can&#8217;t have &#8211; like watching TextMate <a href="http://macromates.com/screencasts">demo videos</a>. One wonderful video shows a <a href="http://macromates.com/screencast/ruby_quiz_screencast.mov">test-driven design</a> demonstration by James Edward Gray II where he used Textmate snippets to generate the various assert statements. For example:
</div>
<pre>
ase => assert_equal(expected, actual)
asn => assert_nil(instance)
asm => assert_match(/expected_pattern/, actual_string)
</pre>
<p>I&#8217;d been using Corban Brook&#8217;s <a href="http://schf.uc.org/articles/2006/09/18/textmate-like-template-syntax-for-radrails">templates</a> but they didn&#8217;t include any assert or migration templates. And I wanted them without having to spend $3049 on TextMate [<a href="#radrails-snippets1">1</a>]</p>
<h3>This made me cranky</h3>
<p><strong>Solution 1:</strong> Learn <a href="http://www.rubyinside.com/ruby-and-rails-on-emacs-screencast-281.html">Emacs</a>. Setting up Emacs with all the modules you&#8217;ll need is a non-trival exercise. That is, put aside a day or so and don&#8217;t expect to be finished when time runs out. Plus, a version of GNU Emacs for Windows hasn&#8217;t been released since 2005. Not a lot of OSS love there.</p>
<p><strong>Solution 2: </strong> Offer to build Textmate for Windows. I&#8217;m sure I read once that the Textmate author was open to porting of Textmate to Windows. That must be the past, because their website claims very strongly that there will <a href="http://macromates.com/">never be a port</a>:</p>
<blockquote><p>countless requests for both a Windows and Linux port, but TextMate remains exclusive for the Mac, and that is how we like it!</p></blockquote>
<p>That&#8217;s just lazy if you ask me.</p>
<p><strong>Solution 3:</strong> Port Textmate&#8217;s snippet libraries (bundles) over to RadRails. Textmate has a more powerful syntax for its snippets than RadRails has for its templates (a limitation inherited from Eclipse), but <strong>SUCCESS!</strong> On the 31st of October &#8211; the day when Textmate was lauded around the blogosphere for its Halloween theme, I ported all their snippets into RadRails. OoooOOOOHHH spooooky.</p>
<p>You can now access the latest and greatest in templates/snippets for Radrails, for <a href="http://drnicwilliams.com/wp-content/uploads/2006/11/ruby-rr-templates.xml">Ruby/Rails</a> and <a href="http://drnicwilliams.com/wp-content/uploads/2006/11/rhtml-rr-templates.xml">RHTML</a> (or click on the yellow boxes at the top).</p>
<h3>Installation</h3>
<ol>
<li>Download the two template XML files.</li>
<li>Open RadRails</li>
<li>Go to Windows > Preferences > Ruby > Editor > Templates, to see the list of included templates</li>
<li>Click on any template, and press Ctrl-A to select them all.</li>
<li>Click on Remove, to delete them all</li>
<li>Click Import&#8230;, select the file <a href="http://drnicwilliams.com/wp-content/uploads/2006/11/ruby-rr-templates.xml">ruby-rr-templates.xml</a></li>
<li>Change to Rails > Editiors > RHTML Editor > RHTML Templates</li>
<li>Remove all the current templates</li>
<li>Click Import&#8230;, select the file <a href="http://drnicwilliams.com/wp-content/uploads/2006/11/rhtml-rr-templates.xml">rhtml-rr-templates.xml</a></li>
<li>Press Ok to close the dialog and you&#8217;re done</li>
</ol>
<p>Too difficult? The next release of RadRails will include these new templates.</p>
<h3>How to use templates/snippets?</h3>
<p>You can peruse a <a href="http://clarkware.com/cgi/blosxom/2006/05/03">textmate-snippets-cheat-sheet</a>, but really, spend 20 minutes looking through the template lists in RadRails. The <em>name</em> of the template is the text you type into the editor to activate the template.</p>
<p>So, the name of <code>assert_equals</code> is <code>ase</code>. So, type <code>ase</code> and press CTRL-SPACE, and a list of options pops up. Press return on the selected option.</p>
<p>Want to see all available <code>assert_*</code> templates? Type <code>as</code> and CTRL-SPACE and there they are. Nifty.</p>
<h3>Patching/Updating</h3>
<p>The RadRails guys are going to host these templates to allow anonymous access to make submitting patches relatively easy (if you know how to wield SVN). In future perhaps there will be a nice website for collaboratively sharing and downloading updates to templates.</p>
<h3>Templates for JavaScript and CSS</h3>
<p>I&#8217;ve put in a request for adding template support for JS and CSS as I have ported the JavaScript+CSS bundles as well. We just need a UI to import them into RadRails.</p>
<p><a name="radrails-snippets1">[1]</a> TextMate is 39 euros = $49 at the moment. Plus $3000 for a new Mac.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2010/06/01/validate-and-save-your-ruby-in-textmate-with-secret-rubinus-superpowers/' rel='bookmark' title='Permanent Link: Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers'>Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers</a> <small>In some TextMate bundles, if you save a file it...</small></li><li><a href='http://drnicwilliams.com/2008/06/11/using-ruby-within-textmate-snippets-and-commands/' rel='bookmark' title='Permanent Link: Using Ruby within TextMate snippets and commands'>Using Ruby within TextMate snippets and commands</a> <small>I didn&#8217;t know you could run Ruby within TextMate snippets....</small></li><li><a href='http://drnicwilliams.com/2008/05/12/textmate-bundles-for-merb/' rel='bookmark' title='Permanent Link: TextMate bundles for Merb'>TextMate bundles for Merb</a> <small>If you are using TextMate (OS X) or E Text...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2006/11/06/post-halloween-radrails-trick-all-textmate-snippets-available/feed/</wfw:commentRss>
		<slash:comments>75</slash:comments>
<enclosure url="http://macromates.com/screencast/ruby_quiz_screencast.mov" length="44523350" type="video/quicktime" />
		</item>
		<item>
		<title>TextMate theme for RadRails</title>
		<link>http://drnicwilliams.com/2006/08/08/textmate-theme-for-radrails/</link>
		<comments>http://drnicwilliams.com/2006/08/08/textmate-theme-for-radrails/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 22:02:59 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[RadRails]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2006/08/08/textmate-theme-for-radrails/</guid>
		<description><![CDATA[UPDATE: Screen shot of Textmate theme for Radrails now available. UPDATE: Vista ClearType fonts available now. I&#8217;ve also added instructions for changing fonts in RadRails if you cannot install Consolas, below. RadRails comes with one theme: white background, black foreground. A few nice shades of markup. Lovely. Want a little more excitement? Perhaps you want [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/' rel='bookmark' title='Permanent Link: RSpec snippets/templates for RadRails'>RSpec snippets/templates for RadRails</a> <small> Using RadRails? Using RSpec? Missing some snippet/template love? 70...</small></li><li><a href='http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/' rel='bookmark' title='Permanent Link: RadRails Templates Cheat Sheets'>RadRails Templates Cheat Sheets</a> <small>Now that RadRails is blessed with 100s of templates/snippets the...</small></li><li><a href='http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/' rel='bookmark' title='Permanent Link: RadRails Templates on Trac'>RadRails Templates on Trac</a> <small>I have started to cleanup the Ruby and RHTML templates...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<div><a href="http://drnicwilliams.com/wp-content/uploads/2006/08/radrails-with-textmate-theme.png" class="thickbox" style="float: left"><img id="image34" src="http://drnicwilliams.com/wp-content/uploads/2006/08/radrails-with-textmate-theme.thumbnail.png" alt="Radrails with Textmate theme" /></a>UPDATE: Screen shot of Textmate theme for Radrails now available.</p>
<p>UPDATE: Vista ClearType fonts <a href="http://drnicwilliams.com/wp-content/uploads/2006/08/6_new_cleartype_fonts_longhorn.zip" title="Vista ClearType Fonts">available now</a>. I&#8217;ve also added instructions for changing fonts in RadRails if you cannot install Consolas, below.
</div>
<p>RadRails comes with one theme: white background, black foreground. A few nice shades of markup. Lovely.</p>
<p>Want a little more excitement? Perhaps you want to feel like your using TextMate, even though it costs 30€ and won&#8217;t run on your machine anyway?</p>
<p>What you need is the <a href="http://drnicwilliams.com/wp-content/uploads/2006/08/TextMate-for-RadRails.zip">TextMate-theme for RadRails</a>. My friend Brett devised this and gave it to me during Railsconf. Understand this with me &#8211; he drove 15 hours from southern USA to Chicago. I flew 20 hours from Amsterdam. Just so I could get this theme and now share it with you.</p>
<p>That&#8217;s one prized theme right there, all y&#8217;alls. (A Texan taught me that once).</p>
<p><a href="http://drnicwilliams.com/wp-content/uploads/2006/08/TextMate-for-RadRails.zip">Download it</a>, unzip it, and store it anywhere you like. Don&#8217;t like free choice? Then save it in the RadRails/Themes.</p>
<p>If my memory serves me well:</p>
<ol>
<li>Go to File &gt; Import&#8230;</li>
<li>Under General, select Preferences, and click Next.</li>
<li>Browse to the epf file.</li>
<li>Select the Import All checkbox and press Finish.</li>
</ol>
<p>You are now one sexy Ruby/Rails developer. Yes, you.</p>
<p>UPDATE: The theme will look for the Consolas font &#8211; one of the new Windows Vista fonts that you can download after a bit of Googling &#8211; its the replacement for Courier New.</p>
<p>UPDATE: If you cannot install Consolas on your system, you will need to select an alternate fixed width font, such as Courier. To do this:</p>
<ol>
<li>Go to Window >> Preferences&#8230;</li>
<li>Go to General >> Appearance >> Colors and Fonts</li>
<li>Select Basic >> Text Font</li>
<li>Click Change&#8230;</li>
<li>Select your replacement fixed width font, and press Ok.</li>
</ol>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2007/11/03/rspec-snippetstemplates-for-radrails/' rel='bookmark' title='Permanent Link: RSpec snippets/templates for RadRails'>RSpec snippets/templates for RadRails</a> <small> Using RadRails? Using RSpec? Missing some snippet/template love? 70...</small></li><li><a href='http://drnicwilliams.com/2007/02/01/radrails-templates-cheat-sheets/' rel='bookmark' title='Permanent Link: RadRails Templates Cheat Sheets'>RadRails Templates Cheat Sheets</a> <small>Now that RadRails is blessed with 100s of templates/snippets the...</small></li><li><a href='http://drnicwilliams.com/2006/11/16/radrails-templates-on-trac/' rel='bookmark' title='Permanent Link: RadRails Templates on Trac'>RadRails Templates on Trac</a> <small>I have started to cleanup the Ruby and RHTML templates...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2006/08/08/textmate-theme-for-radrails/feed/</wfw:commentRss>
		<slash:comments>75</slash:comments>
		</item>
	</channel>
</rss>
