Monday, December 27, 2010

script_finder 1.0

Great news, I got my changes into script_finder and Tobias (@tcrawley) updated the version and release gem to 1.0.0.

Updated gem release

Later this week, considering how slow work is going to be, I am contemplating attacking the known issues for the gem and figuring out how to get rails to specify what commands it supports and strip them off of the command line return.

And I am super stoked considering this is my first solo contribution to the community!

Thursday, December 23, 2010

Tobias' script_finder gem

I took a quick break from coding my web page to help myself out. I cut a branch of script_finder, a gem that I have become addicted to in recent months. There was a minor issue with it. It was not wired to work with Rails 3.

I did some grinding on it and sent Tobias an email or twelve letting him know what I was doing as well as asking for feedback. I did a "final" commit today and send up a pull request. Lets see what happens.


Tobias script_finder

Tuesday, December 21, 2010

My Chain Maille project's conversion to Rails 3

This week I took the time to upgrade my new project from Rails 2 to Rails 3. Thank your respective deity that I did so. There are a few complaints. I miss having to manually hack in bundler's gem management as well as the long complicated routes file. Where, I ask you, will I spend those hours debugging that used to boil down to a bad route configuration? Where? I shutter at the thought of being able to read my routes file and not have to fight with gem versions.

One thing that truly bothered me, a minor annoyance but one none the less, was that script_finder no longer works. I think I will have to fork the project and provide a Rails 3 version, that is of course, unless someone can provide me with a link to the Rails 3 friendly version.

Friday, December 17, 2010

Polymorphic Paths

One of my friends directed me to this post. Great info on how to use polymorphic paths to save yourself some confusion and work.

http://rookieonrails.blogspot.com/2008/01/sti-views-revisited-or-polymorphic.html

Thursday, December 16, 2010

Great Quote

I have been looking for this quote for some time:

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

-- Brian Kernighan

Monday, December 13, 2010

Pluralization Customization in Rails 2

Got stuck with a bit of an issue:

Rails thinks that weave - weaves and that weaves - weaf
Exactly what a weaf is... well I don't know either.

Fix:

ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'weave', 'weaves'
inflect.irregular 'weaves', 'weave'
end


in your config/initializers/inflections.rb

Chainmail

I got bored over the course of last week and this weekend and decided that my usual chainmail site is starting to annoy me. It does not provide the reference I want for either my clients or for myself. I have a hard time remembering from order to order what the AR I want for my Elf Weave is. So, new project. Should be interesting and give me something to let the guy I am mentoring learn on.

Links to follow soon.

Thursday, December 2, 2010

Why Work Does Not Get Done at Work

I saw this feed come through on Twitter and listened to the talk. It is brilliant. Everyone should watch this, managers should watch it twice, then write it down, and think about getting some of the transcript tattooed onto their arms so they can see it at work everyday. Thanks TED

TED No Work At Work