<?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>Transcending Frontiers &#187; New additions to our case study section</title>
	<atom:link href="http://blog.thefrontiergroup.com.au/category/inside-tfg/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thefrontiergroup.com.au</link>
	<description>Your peek inside the collective mind of The Frontier Group</description>
	<lastBuildDate>Tue, 03 Jan 2012 06:53:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>New additions to our case study section</title>
		<link>http://blog.thefrontiergroup.com.au/2011/11/new-additions-to-our-case-study-section/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/11/new-additions-to-our-case-study-section/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 13:21:37 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[Our Products]]></category>
		<category><![CDATA[Websites or Tools]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1847</guid>
		<description><![CDATA[Our primary focus at The Frontier Group is web and mobile applications, but we do find time to design a website every now and again. We&#8217;ve added three websites recently completed to our case studies section of the site. You can see them by clicking the links below: Australian Mines Ramelius Resources BatteryLimits]]></description>
			<content:encoded><![CDATA[<p>Our primary focus at The Frontier Group is web and mobile applications, but we do find time to design a website every now and again. We&#8217;ve added three websites recently completed to our case studies section of the site.</p>
<p>You can see them by clicking the links below:</p>
<p><a href="http://www.thefrontiergroup.com.au/case-studies/australian_mines">Australian Mines</a><br />
<a href="http://www.thefrontiergroup.com.au/case-studies/ramelius_resources">Ramelius Resources</a><br />
<a href="http://www.thefrontiergroup.com.au/case-studies/battery_limits">BatteryLimits</a></p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/11/new-additions-to-our-case-study-section/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/11/new-additions-to-our-case-study-section/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn Ruby with the Ruby Koans</title>
		<link>http://blog.thefrontiergroup.com.au/2011/10/learn-ruby-with-the-ruby-koans/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/10/learn-ruby-with-the-ruby-koans/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 06:42:59 +0000</pubDate>
		<dc:creator>mlambie</dc:creator>
				<category><![CDATA[Agile Development]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Websites or Tools]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1837</guid>
		<description><![CDATA[If you&#8217;re looking for an engaging and interactive way to learn Ruby, I&#8217;d recommend Ruby Koans by EdgeCase. I think that the koans are especially interesting if you&#8217;re coming from another programming language like PHP or Java, because they rely on some basic programming knowledge, but don&#8217;t presume any Ruby-specific abilities. The Koans walk you [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re looking for an engaging and interactive way to learn Ruby, I&#8217;d recommend <a title="Ruby Koans" href="http://rubykoans.com/">Ruby Koans</a> by <a title="EdgeCase" href="http://edgecase.com/">EdgeCase</a>. I think that the koans are especially interesting if you&#8217;re coming from another programming language like PHP or Java, because they rely on some basic programming knowledge, but don&#8217;t presume any Ruby-specific abilities.</p>
<blockquote><p>The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries.</p></blockquote>
<p>By manipulating and building upon Ruby&#8217;s TestUnit framework, the EdgeCase developers have created a step-by-step process for teaching Ruby through the practice of &#8220;<a title="Red, Green, Refactor" href="http://jamesshore.com/Blog/Red-Green-Refactor.html">Red, Green, Refactor.</a>&#8221; They&#8217;ve added some simple game mechanics too, by showing your systematic progression through the 270+ challenges (puzzles). Reaching enlightenment results in a pretty ASCII graphic, and a legitimate sense of achievement.</p>
<p>Before you start with the koans though you&#8217;ll need a working Ruby installation. I recommend you take a look at the excellent <a title="rvm" href="http://beginrescueend.com/">rvm</a> project, which will allow you to install multiple rubies (1.8.7 and 1.9.2 for example, alongside each other) and multiple gemsets in your home directory. Former Frontiersmen and 2011 Ruby Hero Award winner <a href="http://twitter.com/#!/sutto">Darcy Laycock</a> was heavily involved in this project as part of the 2010 Ruby Summer of Code, so we really like rvm at TFG.</p>
<p>The <a href="https://github.com/edgecase/ruby_koans">GitHub repository</a> even includes a handy Keynote presentation, which I used as the basis for my talk about Ruby Koans at last week&#8217;s <a title="Ruby on Rails Perth Meetup" href="http://www.perthrubyonrails.com.au/">Ruby on Rails Oceania Perth meetup</a>.</p>
<p>Lastly, if you&#8217;d like to have a play with the koans before diving in too deep, they&#8217;re available online through your web browser at <a title="Ruby Koans Online" href="http://koans.heroku.com/">Ruby Koans Online</a>. This is a no-risk way of trying out Ruby (hint: team them up with why&#8217;s <a title="Try Ruby" href="http://tryruby.org/">Try Ruby</a> project) in your browser.</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/10/learn-ruby-with-the-ruby-koans/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/10/learn-ruby-with-the-ruby-koans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Positions available: Development Manager and Ruby Developers</title>
		<link>http://blog.thefrontiergroup.com.au/2011/09/positions-available-development-manager-and-ruby-developer/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/09/positions-available-development-manager-and-ruby-developer/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 02:27:00 +0000</pubDate>
		<dc:creator>mlambie</dc:creator>
				<category><![CDATA[Inside TFG]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1811</guid>
		<description><![CDATA[The Frontier Group is a boutique software development company based in West Perth. We have a strong focus on web software, and utilise Ruby on Rails and JavaScript to build web applications, and Objective-C for our iOS projects. We’re looking to take on experienced iOS and Web Developers and also a Development Manager (at TFG [...]]]></description>
			<content:encoded><![CDATA[<p>The Frontier Group is a boutique software development company based in West Perth. We have a strong focus on web software, and utilise Ruby on Rails and JavaScript to build web applications, and Objective-C for our iOS projects. We’re looking to take on experienced iOS and Web Developers and also a Development Manager (at TFG that means you&#8217;re a part-time project manager who also writes code).</p>
<h1>Is this you?</h1>
<p>You understand the difference between websites and web applications, and you want to write apps that matter for people that care about them.</p>
<p>You’ll have a track record of working on completed projects, and if you&#8217;re a Development Manager, you&#8217;ll have delivered some of these projects personally. You’ll have a few years commercial experience, probably working as part of a team doing solid but under-appreciated work. You will have experience with Mac, Linux or UNIX, but it might not be your daily environment. Similarly you will have an opinion about vi vs. Emacs or Python vs. Ruby, but you’ll understand that they’re just opinions.</p>
<p>You’ll care about your tools and will take real, genuine pride in the quality of the code you create. You won&#8217;t consider automated testing and continuous integration as optional components of a project, and will appreciate automated deployment procedures too. Learning new programming languages and getting more out of the languages you already know will excite you. Efficiency will be important too, and you’ll be looking for ways to automate your workflow and push the repetition off to a script.</p>
<p>You’ll be confident in your programming ability, regardless of the language you prefer, yet humble enough to seek guidance when needed. You’ll know how JavaScript can be used to enhance the web, and will have demonstrated experience with a leading JavaScript library. You might even care about SASS and HAML, if you’re really cool.</p>
<p>Using the right tools is important and we realise that. We don’t have a parent company dictating how we do things or what our “standard operating environment” is – you’ll get to make those decisions with us. We all use MacBook Pros for development, but you might want a new iMac, for example. You’ll keep up to date with current trends and care about using modern techniques and practices, as well as tools and technologies.</p>
<h1>What we give you</h1>
<ul>
<li>Variable salary, dependent on position (Starting at $63,000 on probation)</li>
<li>9% superannuation (on top of salary)</li>
<li>A MacBook Pro with SSD (yours to keep, replaced every two years) ~$3,500</li>
<li>$1,000 travel allowance per year (parking, bike servicing, public transport)</li>
<li>Internet and mobile allowance ($80 each per month)</li>
<li>Current and relevant books, training, tools and gear</li>
<li>Opportunities to work from home/flexi-time</li>
<li>Pay reviews every 6 months with no ceiling on earning potential</li>
<li>Freedom to grow your role with our organisation</li>
</ul>
<p><span style="font-weight: normal; font-size: 13px;"> </span></p>
<h1>What you give us</h1>
<ul>
<li>Agreed units of production (standard working week)</li>
<li>Your creative genius and passion</li>
</ul>
<h1>How to apply</h1>
<p>Send a short email to <a href="mailto:jobs@thefrontiergroup.com.au">jobs@thefrontiergroup.com.au</a> and reference your Github and Stack Overflow accounts, along with any Open Source projects you’re involved with. Include a resume if it’s three pages or less.</p>
<p>*International applicants are also welcome</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/09/positions-available-development-manager-and-ruby-developer/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/09/positions-available-development-manager-and-ruby-developer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Madison Shop &#8211; E-commerce Made Easy for our Customers</title>
		<link>http://blog.thefrontiergroup.com.au/2011/09/madison-shop-e-commerce-made-easy-for-our-customers/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/09/madison-shop-e-commerce-made-easy-for-our-customers/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 05:38:48 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[Madison Shop]]></category>
		<category><![CDATA[Our Products]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1797</guid>
		<description><![CDATA[Earlier this year we began working on an internal e-commerce product that would appeal to our existing customer base, as well as new customers. While there are a myriad of options already available for businesses looking to move sales online, our experiences with them over the years has always been hit and miss. Taking into [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this year we began working on an internal e-commerce product that would appeal to our existing customer base, as well as new customers. While there are a myriad of options already available for businesses looking to move sales online, our experiences with them over the years has always been hit and miss.</p>
<p>Taking into consideration the needs of our customer base, we decided to integrate e-commerce facilities into our existing CMS platform. This has the immediate appeal that our customers do not need to learn yet a second content management platform. For new customers it&#8217;s great that they can now build a website with us and immediately sell online using our pre-built systems.</p>
<p>If you&#8217;re looking for a way to sell your products online, enquire about <a href="http://getmadisonshop.com">Madison Shop</a> with your new website.</p>
<p><strong>Why Choose Madison?</strong></p>
<ul>
<li>Take control of your entire website and online store with a simple content, product &amp; sales management system.</li>
<li>Give your customers the shopping experience they need with a custom template created by our design team.</li>
<li>With support for most Australian (and international) banks as well as PayPal you can collect payments right away.</li>
</ul>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/09/madison-shop-e-commerce-made-easy-for-our-customers/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/09/madison-shop-e-commerce-made-easy-for-our-customers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ECU Open Day Planner 2011</title>
		<link>http://blog.thefrontiergroup.com.au/2011/07/ecu-open-day-planner-2011/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/07/ecu-open-day-planner-2011/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 00:22:44 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1769</guid>
		<description><![CDATA[Our latest web application has gone live, the ECU Open Day Planner for Edith Cowan University in Perth, Western Australia. If you&#8217;re thinking of visiting either the Mt Lawley or Joondalup campuses on the day, check it out!]]></description>
			<content:encoded><![CDATA[<p>Our latest web application has gone live, the <a href="http://thefrontiergroup.com.au/case-studies/ecu_openday_planner">ECU Open Day Planner</a> for <a href="http://www.ecu.edu.au">Edith Cowan University</a> in Perth, Western Australia. </p>
<p>If you&#8217;re thinking of visiting either the Mt Lawley or Joondalup campuses on the day, check it out!</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/07/ecu-open-day-planner-2011/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/07/ecu-open-day-planner-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Frontier Group &#8211; Busy Times Ahead</title>
		<link>http://blog.thefrontiergroup.com.au/2011/06/the-frontier-group-busy-times-ahead/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/06/the-frontier-group-busy-times-ahead/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 22:10:08 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1598</guid>
		<description><![CDATA[It&#8217;s been a busy few months at The Frontier Group. Firstly, a congratulations to our very own Darcy Laycock for winning a Ruby Hero award. The Ruby Hero awards are put in place to recognise people that have gone above and beyond in the Ruby community. We&#8217;ve rolled out our new Frontier Group blog design, [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a busy few months at The Frontier Group. </p>
<p>Firstly, a congratulations to our very own <a href="http://twitter.com/sutto">Darcy Laycock</a> for winning a <a href="http://rubyheroes.com">Ruby Hero</a> award. The Ruby Hero awards are put in place to recognise people that have gone above and beyond in the Ruby community.</p>
<p>We&#8217;ve rolled out our new Frontier Group blog design, and would love to hear what you think of it in the comments below. We&#8217;ve also added a <strong>Featured Posts</strong> section in the sidebar, so you can see what other visitors (and hopefully you) are interested in too.</p>
<p>We&#8217;ve been heavily featured in a range of Podcasts recently, such as <a href="http://ruby5.envylabs.com">Ruby5</a> and <a href="http://www.rubyshow.com">The Ruby Show</a>. Also we&#8217;ve been featured in prominent Ruby and Rails websites such as <a href="http://rubyweekly.com">Ruby Weekly</a> and <a href="http://rubyrogues.com">Ruby Rogues</a>.</p>
<p>We&#8217;d love you to keep visiting. Sign up to receive our newsletter using the form to the right, or stop back here from time to time. Don&#8217;t forget to check out the rest of our site and see <a href="http://thefrontiergroup.com.au/pages/case-studies">what we&#8217;ve been working on</a>.</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/06/the-frontier-group-busy-times-ahead/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/06/the-frontier-group-busy-times-ahead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stubbing out Rails.env</title>
		<link>http://blog.thefrontiergroup.com.au/2011/06/stubbing-out-rails-env/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/06/stubbing-out-rails-env/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 08:10:46 +0000</pubDate>
		<dc:creator>Jordan Maguire</dc:creator>
				<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1656</guid>
		<description><![CDATA[The problem I had some conditional logic I needed to test that was based on the current Rails environment. Basically something like: if Rails.env.production? # Do something Elsif Rails.env.staging? # Do something else End I needed to stub out the Rails.env call. I had a quick Google around but I couldn’t really find a way [...]]]></description>
			<content:encoded><![CDATA[<h4>The problem</h4>
<p>I had some conditional logic I needed to test that was based on the current Rails environment. Basically something like:</p>
<p><code>if Rails.env.production?<br />
# Do something<br />
Elsif Rails.env.staging?<br />
# Do something else<br />
End</code></p>
<p>I needed to stub out the <code>Rails.env</code> call. I had a quick Google around but I couldn’t really find a way of doing this I was happy with.</p>
<h4>The solution</h4>
<p>I whipped up this function that allows you to set the Rails environment to whatever you want:</p>
<p class="gist-block" data-gist-id="1018290" data-gist-file="stub_env.rb" id="gist-1018290">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1018290">View it on Github!</a></p>
<p>Put the above function in your spec file or your spec_helper.rb. The function can be called as such:</p>
<p class="gist-block" data-gist-id="1018294" data-gist-file="stub_env_spec.rb" id="gist-1018294">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1018294">View it on Github!</a></p>
<h4>How does this work?</h4>
<p>The <code>Rails.env</code> function looks like this:</p>
<p class="gist-block" data-gist-id="1018293" data-gist-file="rails_env.rb" id="gist-1018293">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1018293">View it on Github!</a></p>
<p>So all you&#8217;re doing is setting the cached instance variable to the environment you want.</p>
<h4>Follow Up (June 20, 2011)</h4>
<p>So two distinct issue have come up as a result of the above content.</p>
<p>Firstly, there was no ensure meaning that if an exception was raised in the middle of the stub then the environment would be changed for the remaining tests. This was a stupid mistake but, it happens, so I&#8217;ve updated the gist and my code.</p>
<p>Secondly, the issue of checking environment in code. The solution for this would be to have a constant in each env file that defines whatever it is you are using the env check for. So in the example I was working with each env file would have a EMAIL_TARGET constant.</p>
<p>You still need to test this, so the stub provided is still useful in this regard.</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/06/stubbing-out-rails-env/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/06/stubbing-out-rails-env/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Update: Compass and SASS (not SCSS) in the Rails 3.1 asset pipeline</title>
		<link>http://blog.thefrontiergroup.com.au/2011/06/update-compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/06/update-compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 06:04:10 +0000</pubDate>
		<dc:creator>sj26</dc:creator>
				<category><![CDATA[Inside TFG]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1642</guid>
		<description><![CDATA[An update to my previous post, Compass and SASS (not SCSS) in the Rails 3.1 asset pipeline: The only problem I encountered is that including Compass in the previously detailed way does not include any of the Sass Extensions. They&#8217;re written in Ruby, so just setting a SASS load path isn&#8217;t sufficient. There&#8217;s a GitHub [...]]]></description>
			<content:encoded><![CDATA[<p>An update to my previous post, <a href="http://blog.thefrontiergroup.com.au/2011/06/compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/">Compass and SASS (not SCSS) in the Rails 3.1 asset pipeline</a>:</p>
<p>The only problem I encountered is that including Compass in the previously detailed way does not include any of the <a href="https://github.com/chriseppstein/compass/tree/stable/lib/compass/sass_extensions">Sass Extensions</a>. They&#8217;re written in Ruby, so just setting a SASS load path isn&#8217;t sufficient.</p>
<p>There&#8217;s a <a href="https://github.com/chriseppstein/compass/issues/337">GitHub issue</a> on the the <a href="https://github.com/chriseppstein/compass">Compass project</a> tracking Rails 3.1 support. The <a href="https://github.com/chriseppstein/compass/issues/337#issuecomment-1302877">latest and greatest suggestion</a> is to use the following in your <code>Gemfile</code>:</p>
<p class="gist-block" data-gist-id="1013863" data-gist-file="Gemfile" id="gist-1013863">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1013863">View it on Github!</a></p>
<p>It works beautifully! All the extension functions work too. Thanks, <a href="https://github.com/chriseppstein">@chriseppstein</a>!</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/06/update-compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/06/update-compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compass and SASS (not SCSS) in the Rails 3.1 asset pipeline</title>
		<link>http://blog.thefrontiergroup.com.au/2011/06/compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/06/compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 03:45:08 +0000</pubDate>
		<dc:creator>sj26</dc:creator>
				<category><![CDATA[Inside TFG]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1632</guid>
		<description><![CDATA[Update: see my updated post with details of a newer, better solution. If you&#8217;re like me, you&#8217;re probably already playing around with the Rails 3.1 release candidate. If not, go take a peek at why you should be excited. (Thanks Ryan Bates!) If so, like me, you&#8217;re probably also wanting to play with all your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> see <a href="http://blog.thefrontiergroup.com.au/2011/06/update-compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/">my updated post</a> with details of a newer, better solution.</p>
<p>If you&#8217;re like me, you&#8217;re probably already playing around with the <a href="http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-candidate">Rails 3.1 release candidate</a>. If not, go take a peek at <a href="http://railscasts.com/episodes/265-rails-3-1-overview">why you should be excited</a>. (Thanks Ryan Bates!) If so, like me, you&#8217;re probably also wanting to play with all your old friends, like <a href="http://compass-style.org/">Compass</a>.</p>
<p>Compass, by default, manages <a href="http://sass-lang.com/">SASS</a> for you. It gives you a place to put it, <code>app/stylesheets</code>, and takes care of bundling everything together. The <a href="http://www.youtube.com/watch?v=cGdCI2HhfAU">new Rails 3.1 asset pipeline</a> does this all for you using <a href="https://github.com/sstephenson/sprockets">Sprockets</a> instead, and does it nice and cleanly in a consistent manner with <a href="http://jashkenas.github.com/coffee-script/">CoffeeScript</a> and whatever else you might eventually integrate.</p>
<p>The problem is, I don&#8217;t want Compass managing my SASS. I <del>like</del> love the asset pipeline. But by default, from the asset pipeline I can&#8217;t use Compass. It doesn&#8217;t know what or where it is. So, I&#8217;ve added this to my new rails 3.1 projects:</p>
<p class="gist-block" data-gist-id="1011479" data-gist-file="compass.rb" id="gist-1011479">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1011479">View it on Github!</a></p>
<p>I&#8217;m also a heathen and like SASS, not SCSS, and it took me a minute to realise that it&#8217;s <em>just as easy to use</em>. Instead of <code>mystyle.css.<strong>scss</strong></code>, name your stylesheet <code>mystyle.css.<strong>sass</strong></code>. To make rails do this by default when you&#8217;re generating controllers et al, add this into your <code>config/application.rb</code>&#8216;s config section:</p>
<p class="gist-block" data-gist-id="1011479" data-gist-file="application.rb" id="gist-1011479">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1011479">View it on Github!</a></p>
<p>You can even rename the default <code>application.css</code> to <code>application.css.sass</code> and all the sprockets <code>require_*</code> machinery still works. Make sure you change the <code>/* ... */</code> comments to <code>//</code> comments.</p>
<p>Beauty!</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/06/compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/06/compass-and-sass-not-scss-in-the-rails-3-1-asset-pipeline/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Pluralizations and Singularizations (Inflections) in Rails 3</title>
		<link>http://blog.thefrontiergroup.com.au/2011/06/pluralizations-and-singularizations-inflections-in-rails-3/</link>
		<comments>http://blog.thefrontiergroup.com.au/2011/06/pluralizations-and-singularizations-inflections-in-rails-3/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 05:24:13 +0000</pubDate>
		<dc:creator>mlambie</dc:creator>
				<category><![CDATA[Inside TFG]]></category>

		<guid isPermaLink="false">http://blog.thefrontiergroup.com.au/?p=1611</guid>
		<description><![CDATA[I was part-way through submitting an answer on Stack Overflow when the initial question was deleted. The developer was having an issue with Rails thinking that the singular of &#8220;faxes&#8221; was &#8220;faxis&#8221; when in fact it should be &#8220;fax&#8221;. I thought it was an interesting problem, so here&#8217;s the answer I prepared: You can overwrite [...]]]></description>
			<content:encoded><![CDATA[<p>I was part-way through submitting an answer on Stack Overflow when the initial question was deleted. The developer was having an issue with Rails thinking that the singular of &#8220;faxes&#8221; was &#8220;faxis&#8221; when in fact it should be &#8220;fax&#8221;. </p>
<p>I thought it was an interesting problem, so here&#8217;s the answer I prepared:</p>
<p>You can overwrite or set Rails&#8217; singularizations and pluralizations (properly called inflections) in <code>config/initializers/inflections.rb</code></p>
<p>For example:<br />
<p class="gist-block" data-gist-id="1001814" data-gist-file="inflections.rb" id="gist-1001814">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1001814">View it on Github!</a></p></p>
<p>As you can see below, Rails now understands how to count &#8220;faxes&#8221; correctly. One fax, two faxes, three faxes, and so on. You can test that from within the Rails console:</p>
<p class="gist-block" data-gist-id="1001840" data-gist-file="gistfile1.rb" id="gist-1001840">Can&rsquo;t see this Gist? <a rel="nofollow" href="http://gist.github.com/1001840">View it on Github!</a></p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2011/06/pluralizations-and-singularizations-inflections-in-rails-3/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2011/06/pluralizations-and-singularizations-inflections-in-rails-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

