Scope ledger_items for current year.
Add column select_year_month to companies table.
Remove column select_year_month from companies table. Most times I hate rails. Hoping it gets easier very soon.
Removed @by_year in companies controller.
Add form_tag to show_year_month.
Needs debugging.
Needs debugging. needs year.to_i to work.
Try this.
Use the right ID
Working select_year with minor bug. Errors out if validation fails. No route matches {:action=>"show", :controller=>"companies"}
Minor bug fix. Create new partial ledger_items_header.