intertwingly

It’s just data

Irregular Taxes


With my second book, I’ve now got enough variable income that my prior approach of doing taxes once a year, and adjusting my W4’s based on my projections for the upcoming year is clearly no longer adequate.  Thankfully my penalty is only $15 dollars this time.  But the message is clear: it’s time for me to keep closer tabs and to file quarterly.  I already had parts of the data I needed captured, all I needed to do is add to it.

ruby script/generate scaffold tax line:string ...
rake db:migrate

Visiting the index produced:

undefined local variable or method `new_tax_path' for #<ActionView::Base:0xb76b2da0>

Looking closer via rake routes:

new_taxis GET    /taxes/new(.:format)               {:action=>"new", :controller=>"taxes"}

What’s with taxis?  Actually, that was enough of a clue to allow me to find this ticket, which identifies the underlying issue as "tax".pluralize.singularize => "taxis".  Easy enough to correct by placing the following in config/initializers/inflections.rb:

ActiveSupport::Inflector.inflections do |inflect|
  inflect.irregular 'tax', 'taxes'
end

Hopefully by filing quarterly, next year won’t be as big of a surprise.