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

I missed on the controller, you have to convert the year to integer :P
```def index
@invoices = (year = params[:year].to_i) ? Invoice.for_year(year) : Invoice.all
end
```