June 24, 2008 at 4:25 pm
· Filed under brewing
But you know, beer, and pictures of it. Things in my basement are progressing well. 
Everything is from left to right.
Back: Grand Cru, Lambic and a Flanders Red
Middle: Brown Ale, Cherry Burbon Stout, Heff
Front: Urban 312 Clone, Citrus Thing.
Permalink
June 17, 2008 at 7:45 pm
· Filed under brewing, development, rails
Tonight users got inventory’s. I’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… passing a parameter) I needed to overload ActiveRecords constructor. Seems harder than it should have been, but I probably wasn’t looking in the right place (google didn’t turn up anything too revealing, should have put Buck on it, mad google skills that one.). If anyone is ever looking for it you want to do:
def initialize(params = {}) #Not def initialize()
super(params)
....
end
So anyway, users now compose inventories. Life is good for them. Still can’t enter recipies, because you know I got side tracked. But eh that’s how it goes.
I’ve got beer to rack & bottle (heff into bottles and racking a brown to secondaries) tomorrow night so I won’t get to work on the site for a day or two. When I get back to it I’ll finish up the recipe stuff and get it out there.
Permalink