<?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>Chris J Mears &#187; ruby on rails</title>
	<atom:link href="http://chrisjmears.com/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisjmears.com</link>
	<description>Web Developer in Ruby on Rails and CakePHP</description>
	<lastBuildDate>Tue, 03 Aug 2010 22:22:46 +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>HAML + Javascript</title>
		<link>http://chrisjmears.com/2009/10/haml-javascript/</link>
		<comments>http://chrisjmears.com/2009/10/haml-javascript/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 04:00:18 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=204</guid>
		<description><![CDATA[I am very meticulous when it comes to server calls. In most of my Rails applications, I make sure to only specify those Javascript files that are deemed absolute necessary for any given view so as to not clutter things with wasted bytes of memory. While I was playing around with HAML, I needed to [...]]]></description>
			<content:encoded><![CDATA[<p>I am very meticulous when it comes to server calls.  In most of my Rails applications, I make sure to only specify those Javascript files that are deemed absolute necessary for any given view so as to not clutter things with wasted bytes of memory.</p>
<p>While I was playing around with <a href="http://haml-lang.com/">HAML</a>, I needed to insert a very simple, very specific jQuery function.  As of this writing, a simple Google search of &#8220;haml and javascript&#8221; came up with some old and unhelpful results. The <a href="http://haml-lang.com/docs/yardoc/HAML_REFERENCE.md.html">official HAML documentation</a> was, of course, among those results, but the answer was at the bottom of the document and a quick scan of the table of contents didn&#8217;t associate &#8220;Filters :&#8221; as being the correct the section.</p>
<p>Of course, a <a href="http://www.red91.com/2009/02/08/inline-javascript-in-haml">blog</a> or <a href="http://railsnotes.com/474-javascript-haml/">two</a> and the <a href="http://groups.google.com/group/haml/msg/5cfa940aa0333440">HAML google group</a> already tackled the topic, so I&#8217;m just going to regurgitate in order in hopes that next person with this problem will find the answer in 2 minutes instead of my 10 minutes.</p>
<p>An example:</p>
<pre>
:javascript
  $(function() {
    $("#tabs").tabs();
  });
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2009/10/haml-javascript/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
