mutsuda/Invoicer — comment on commit 3a7ee069310977032fd7e800f8c21c046ab9647b
File: app/controllers/invoices_controller.rb line 8
By mutsuda:

Ok I think I get it. But I'm new to this syntax. Why do you think I get this error when I request:
*localhost:3000/invoices/by_year/2009*
(I have a root set: *match 'invoices/by_date/:year' => 'Invoices#index', :constraints => { :year => /\d{4}/ } *

ArgumentError in InvoicesController#index

comparison of String with 0 failed
Rails.root: /Users/mmutsuda/rails/invoicer

Application Trace | Framework Trace | Full Trace
app/models/invoice.rb:8:in `<'
app/models/invoice.rb:8:in `new'
app/models/invoice.rb:8:in `block in '
app/controllers/invoices_controller.rb:6:in `index'