<?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>brew manager development blog &#187; rails</title>
	<atom:link href="http://blog.brewmanager.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.brewmanager.com</link>
	<description>Follwing the development of brewmanager.com</description>
	<lastBuildDate>Sat, 07 Feb 2009 13:44:19 +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>Tabbed navigation is starting to happen</title>
		<link>http://blog.brewmanager.com/2008/08/29/tabbed-navigation-is-starting-to-happen/</link>
		<comments>http://blog.brewmanager.com/2008/08/29/tabbed-navigation-is-starting-to-happen/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 02:24:53 +0000</pubDate>
		<dc:creator>krujos</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[tabnav]]></category>

		<guid isPermaLink="false">http://blog.brewmanager.com/?p=36</guid>
		<description><![CDATA[I got some time to work on things again tonight. I&#8217;ve been busy adding the navigation tabs and figuring out how that all works. I decided to use Tabnav because it seemed like the path of least resistance. So far I think that was a good choice. It took me about 20 min to get [...]]]></description>
			<content:encoded><![CDATA[<p>I got some time to work on things again tonight. I&#8217;ve been busy adding the navigation tabs and figuring out how that all works. I decided to use <a href="http://blog.seesaw.it/articles/2006/07/23/the-easiest-way-to-add-tabbed-navigation-to-your-rails-app">Tabnav</a> because it seemed like the path of least resistance. So far I think that was a good choice. It took me about 20 min to get oriented and then I was off and running. Once again I&#8217;m impressed how easy it is to get a basic skeleton going for things in rails.</p>
<p>So far I&#8217;ve got the recipe page with tabs to a users inventory. After writing this I&#8217;ll work on getting the tabs fleshed out more, I&#8217;m still not sure what elements it makes sense to navigate to. I keep having this internal debate that tabs should take you to content and not actions. For instance it should take you to your recipes but we should not have a tab to start a new recipe. I think I might add tabs for recipes, inventory and brews, and possibly the BJCP guidelines (If I choose to reproduce them here, still up in the air on that too). Each of those tabs will have the list you would expect, as well as action links for deleting, editing and adding / starting a new whatever.</p>
<p>Its funny how little time this took, about an hour but how productive it feels because it changed the way the site looks. In my day job I don&#8217;t ever see a user interface change for the work I do&#8230;. instant gratification is nice.</p>
<p>One gotcha I don&#8217;t particularly understand about Tabnav. Whenever I update what a tab links to, or the text in the tab I have to restart mongrel&#8230; what the heck? Not a huge deal but I wasted about 15 min figuring out why my changes wouldn&#8217;t take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.brewmanager.com/2008/08/29/tabbed-navigation-is-starting-to-happen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking at unit tests</title>
		<link>http://blog.brewmanager.com/2008/06/23/looking-at-unit-tests/</link>
		<comments>http://blog.brewmanager.com/2008/06/23/looking-at-unit-tests/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 02:16:49 +0000</pubDate>
		<dc:creator>krujos</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[unit test]]></category>

		<guid isPermaLink="false">http://blog.brewmanager.com/?p=16</guid>
		<description><![CDATA[I neglected to read the ruby / rails unit test documentation because it seemed cumbersome at first glance. I rolled my own thing for models and assumed controllers would do what they were supposed to do. That worked well enough to get me up and going but tonight I decided I needed something more reliable [...]]]></description>
			<content:encoded><![CDATA[<p>I neglected to read the ruby / rails unit test documentation because it seemed cumbersome at first glance. I rolled my own thing for models and assumed controllers would do what they were supposed to do. That worked well enough to get me up and going but tonight I decided I needed something more reliable and rather than reinvent the wheel&#8230;..</p>
<p>So I did some <a title="unit testing. " href="http://manuals.rubyonrails.com/read/chapter/20">reading</a>. The unit tests aren&#8217;t as decoupled as I would like them to be (yes <a title="Michael Feathers" href="http://www.michaelfeathers.com/">Michael Feathers, you have made an impact in my life</a> (his <a title="Working Effectivly with Legacy Code" href="http://www.amazon.com/Working-Effectively-Legacy-Robert-Martin/dp/0131177052/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1214273567&amp;sr=8-1">legacy code book</a> is pretty good. I suggest it). I firmly believe that a unit test should not use a database or network. I think you can do that with the model well enough (by avoiding fixtures), but it looks next to impossible for controllers. From what I&#8217;ve read testing a controller makes http requests to the web server. I&#8217;m not a purist or anything, but its a bummer it has to do that. And I don&#8217;t think I can setup an in memory model object for a controller to work with (I&#8217;m probably wrong about that, I&#8217;d guess there&#8217;s some magic) I&#8217;d imagine for a full tests suite it would slow things down considerably. The other thing I&#8217;m not immediately seeing is a way to sense through a fixture. While not strictly necessary (and may in fact be more trouble than its worth) it sounds like a neat idea. All that said, it looks like the functional testing you can do with the unit test framework is pretty slick. I&#8217;m kicking around the idea of setting up some sort of nightly check out / test run just for kicks.</p>
<p>There has been a vanilla crisis in my house ( I think I get cookies!) I&#8217;m out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.brewmanager.com/2008/06/23/looking-at-unit-tests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Things getting done, even if they are in the wrong order</title>
		<link>http://blog.brewmanager.com/2008/06/17/things-getting-done-even-if-they-are-in-the-wrong-order/</link>
		<comments>http://blog.brewmanager.com/2008/06/17/things-getting-done-even-if-they-are-in-the-wrong-order/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 02:45:34 +0000</pubDate>
		<dc:creator>krujos</dc:creator>
				<category><![CDATA[brewing]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[beer]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.brewmanager.com/?p=13</guid>
		<description><![CDATA[Tonight users got inventory&#8217;s. I&#8217;m not sure why I started working on this. I added it in the account controller the other for some reason. That struck me as ugly so I moved the creation of the inventory down into the user model. I also learned what magic (err not so much magic as you [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight users got inventory&#8217;s. I&#8217;m not sure why I started working on this. I added it in the account controller the other for some reason. That struck me as ugly so I moved the creation of the inventory down into the user model. I also learned what magic (err not so much magic as you know&#8230; passing a parameter) I needed to overload ActiveRecords constructor. Seems harder than it should have been, but I probably wasn&#8217;t looking in the right place (google didn&#8217;t turn up anything too revealing, should have put <a title="Punt a Koala" href="http://www.puntakoala.org/mt/">Buck</a> on it, mad google skills that one.). If anyone is ever looking for it you want to do:</p>
<pre>def initialize(params = {}) #Not def initialize()
    super(params)
    ....
end</pre>
<p>So anyway, users now compose inventories. Life is good for them. Still can&#8217;t enter recipies, because you know I got side tracked. But eh that&#8217;s how it goes.</p>
<p>I&#8217;ve got beer to rack &amp; bottle (<a title="Aleisha's Heff" href="http://symbeer.wikidot.com/recipes:aleishas-heff">heff</a> into bottles and racking a <a title="Nut Brown " href="http://symbeer.wikidot.com/recipes:brown-ale">brown</a> to secondaries) tomorrow night so I won&#8217;t get to work on the site for a day or two. When I get back to it I&#8217;ll finish up the recipe stuff and get it out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.brewmanager.com/2008/06/17/things-getting-done-even-if-they-are-in-the-wrong-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object Model</title>
		<link>http://blog.brewmanager.com/2008/06/12/object-model/</link>
		<comments>http://blog.brewmanager.com/2008/06/12/object-model/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 02:56:26 +0000</pubDate>
		<dc:creator>krujos</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[modeling]]></category>
		<category><![CDATA[uml]]></category>

		<guid isPermaLink="false">http://brewsessions.com/blog/?p=5</guid>
		<description><![CDATA[Tonight I started to lay out the object model I&#8217;ve had kicking around in my head. I generated a lot (if not all) of the scaffolding (models, views and controllers for the non rails crowd). I should probably lay down a real model so I have a design to code to, instead of relying on [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I started to lay out the object model I&#8217;ve had kicking around in my head. I generated a lot (if not all) of the scaffolding (models, views and controllers for the non rails crowd). I should probably lay down a real model so I have a design to code to, instead of relying on myself remembering it all. Anyone have any good suggestions for a UML modeling tool? At work we use <a title="Borland Together" href="http://www.borland.com/us/products/together/index.html">Borland&#8217;s Together Architect</a> but thats a more coin than I&#8217;m willing to shell out.</p>
<p>I&#8217;ve connected the user and the inventory object&#8230; I think for now I&#8217;ll leave it at that until I can get a model drawn up somewhere. Paper and pen maybe&#8230; lofi.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.brewmanager.com/2008/06/12/object-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logins / Users and what I&#8217;m going to do about them.</title>
		<link>http://blog.brewmanager.com/2008/06/12/logins-users-and-what-im-going-to-do-about-them/</link>
		<comments>http://blog.brewmanager.com/2008/06/12/logins-users-and-what-im-going-to-do-about-them/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 01:07:33 +0000</pubDate>
		<dc:creator>krujos</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[acts_as_authenticated]]></category>
		<category><![CDATA[dismay]]></category>
		<category><![CDATA[finance]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://brewsessions.com/blog/?p=4</guid>
		<description><![CDATA[Much to my dismay I&#8217;m going to need some sort of login system. Not because I want to keep anyones credit card, address or even name. I don&#8217;t want to know about any of that, and I doubt  there will be a place to enter such information. It irritates me when sites make me login [...]]]></description>
			<content:encoded><![CDATA[<p>Much to my dismay I&#8217;m going to need some sort of login system. Not because I want to keep anyones credit card, address or even name. I don&#8217;t want to know about any of that, and I doubt  there will be a place to enter such information. It irritates me when sites make me login to view regular old content, or do one time things that don&#8217;t really require me to have an identity (comments on blogs for example). Epically when I don&#8217;t have to pay for it. As an aside, if I haven&#8217;t said it before Brew Sessions won&#8217;t cost anyone anything. If the bandwidth bill passes 10 bucks a month I&#8217;ll add ad words or something maybe&#8230; meh cross that bridge when I come to it</p>
<p>Anyway.. for as much as I can manage the site will be login free. My working idea is you will only need a login to use the inventory management, and if you want to save a brew session (there will be some sort of save as feature that exports it to a pdf or html too). Other than that the site will hopefully be login (and thus a slight irritation free).</p>
<p>Tonight I decided to start futzing with the <a title="rails authentication" href="http://wiki.rubyonrails.com/rails/pages/Authentication">authentication systems available for rails</a>. I&#8217;m doing this first because it&#8217;s the part I&#8217;m least interested in&#8230; and in thoery if I get it over quickly I can move onto bigger and better things. After wading through documentation that appears to be out of date (this seems to be the status quo for most things rails) I settled on <a title="Acts_As_Authenticated" href="http://wiki.rubyonrails.com/rails/pages/Acts_as_authenticated">Acts as Authenticated</a>. <a title="rails authentication" href="http://wiki.rubyonrails.com/rails/pages/Authentication"><br />
</a>I picked it for two reasons, the documentation appears to be reasonably accurate, and it looked easy. So far so good. I&#8217;ve got the mvc for it all generated and it looks like it does what it is supposed to do. I&#8217;m able to create an account.</p>
<p>So cheers to the Acts as Authenticated folks for making something I didn&#8217;t want to spend any time on a relatively quick and painless task. All in all it took about an hour.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.brewmanager.com/2008/06/12/logins-users-and-what-im-going-to-do-about-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Post</title>
		<link>http://blog.brewmanager.com/2008/06/11/first-post/</link>
		<comments>http://blog.brewmanager.com/2008/06/11/first-post/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 02:02:04 +0000</pubDate>
		<dc:creator>krujos</dc:creator>
				<category><![CDATA[brewing]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[brewsessons]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[why]]></category>

		<guid isPermaLink="false">http://brewsessions.com/blog/?p=3</guid>
		<description><![CDATA[This will be the development blog for Brew Manager. Eventually it will do all the stuff it says it does on the front page. For now I’ve gotten hosting setup and the domain name registered. I’m pretty sure I got a rails app created on godaddy.com. We will see how that works out as the [...]]]></description>
			<content:encoded><![CDATA[<p>This will be the development blog for <a href="http://brewmanager.com">Brew Manager</a>. Eventually it will do all the stuff it says it does on the front page. For now I’ve gotten hosting setup and the domain name registered. I’m pretty sure I got a rails app created on <a title="go daddy" href="http://godaddy.com/" target="_self">godaddy.com</a>. We will see how that works out as the internets don’t have great things to say about people success rate.</p>
<p>Like I said above, its going to be a rails site. I started playing with <a href="http://ruby-lang.org/" target="_self">Ruby</a> about a year ago. I took a <a title="ruby on rails" href="http://www.rubyonrails.org/" target="_blank">rails</a> seminar at school (I’m working on my masters) and thought “eh, what the heck”. It will run of mysql and whatever webserver godaddy puts in front of it. If someone other than me ever uses this… well we will cross that bridge when we come to it.</p>
<p>I’ve been home brewing for about a year now and this seemed like a good idea. There are a lot of tools out there that do some, and possibly all of what I’m anticipating putting on Brew Sessions. I’m not saying those tools are bad (I use a few of em), but for the most part they don’t meet my needs. This is aimed primarily at making me happy, but if you have a feature request feel free to drop me a line (josh at brewmanager.com) and I’ll consider it.</p>
<p>Here’s the feature list in case I get rid of it.</p>
<ul>
<li>Inventory Managment</li>
<li>Brew Session Managment (it does the math for mash calculations, AAU etc</li>
<li>Recipe Managment (build, save and search)</li>
<li>Groups/clubs, with all of the above</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.brewmanager.com/2008/06/11/first-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
