<?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>Binary Logic &#187; rails templates</title>
	<atom:link href="http://www.binarylogic.com/tag/rails-templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binarylogic.com</link>
	<description>Ben Johnson's thoughts and programming techniques</description>
	<lastBuildDate>Sat, 23 Jan 2010 21:19:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Authlogic generators? All of the cool kids are doing it.</title>
		<link>http://www.binarylogic.com/2009/04/17/authlogic-generators-all-of-the-cool-kids-are-doing-it/</link>
		<comments>http://www.binarylogic.com/2009/04/17/authlogic-generators-all-of-the-cool-kids-are-doing-it/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:29:46 +0000</pubDate>
		<dc:creator>benjohnson</dc:creator>
				<category><![CDATA[Authlogic]]></category>
		<category><![CDATA[base app]]></category>
		<category><![CDATA[generators]]></category>
		<category><![CDATA[rails templates]]></category>

		<guid isPermaLink="false">http://www.binarylogic.com/?p=677</guid>
		<description><![CDATA[Lately I&#8217;ve been getting a lot of pressure to add a generator to Authlogic. One of the big things I &#8220;tout&#8221; about Authlogic is the fact that is does not need generators, not anymore than any other RESTful controller you create. Authlogic can pull this off because it&#8217;s intuitive, it works just like every other [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-679 alignleft" title="peer_pressure" src="http://www.binarylogic.com/wp-content/uploads/2009/04/peer_pressure.jpg" alt="peer_pressure" width="150" height="107" />Lately I&#8217;ve been getting a lot of pressure to add a generator to Authlogic. One of the big things I &#8220;tout&#8221; about Authlogic is the fact that is does not need generators, not anymore than any other RESTful controller you create. Authlogic can pull this off because it&#8217;s intuitive, it works just like every other model you have in your application. Unless you want to customize how it works, there&#8217;s no learning curve. If you know how to set up a RESTful controller for an ORM model, then you know how to set up a RESTful controller for an Authlogic model.</p>
<p><span id="more-677"></span>In my opinion generators are meant to be a starting point for repetitive tasks that have no sustainable pattern. By repetitive, I mean repetitive in a single application. Ex: multiple controllers, multiple models, etc. 95% of applications are going to create 1 Authlogic model and 1 controller for that model. If they are creating more than one, it is mostly likely for a highly unique situation where a generator would be of no use. Which leads me to my question:</p>
<p><strong>Why not just create your own personalized base application or template that you can start from when you need to start a new application?</strong></p>
<p>This is exactly why rails templates were created. They were created for this exact problem. A generator is never going to please everyone, and if it does, it would have a million options and be extremely complicated. Also, I don&#8217;t know about you, but I am extremely picky about my code. Even if my code and someone else&#8217;s code does the exact same thing, I want my code formatted a certain way. This is a big reason why I dislike restful_authentication. All of this code, that I do not like, gets inserted into my application. It just feels dirty. I&#8217;d much rather build my own authentication solution into a base app, that I like, and use that in my next application.</p>
<p>I just haven&#8217;t been convinced that creating a generator for Authlogic is a good use of my time. If you can convince me otherwise I&#8217;ll gladly do it. It&#8217;s not that I don&#8217;t want to spend the time, its that I truly feel a base app or a rails template is a better solution.</p>
<p>What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.binarylogic.com/2009/04/17/authlogic-generators-all-of-the-cool-kids-are-doing-it/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

