From 507737b8618f54661f72374aead5b7c5d3d6a785 Mon Sep 17 00:00:00 2001 From: Zack Stayman Date: Sun, 12 Jun 2016 21:45:30 -0400 Subject: [PATCH] altered inflector to handle reserve correctly --- app/views/games/human_control.html.erb | 2 +- config/initializers/inflections.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/games/human_control.html.erb b/app/views/games/human_control.html.erb index 0bf1b67..7cba1ea 100644 --- a/app/views/games/human_control.html.erb +++ b/app/views/games/human_control.html.erb @@ -48,7 +48,7 @@ <% end %> <%= link_to "Income Index" , incomes_path(),:class => "button-input" %> - <%= link_to "Add Bonus Reserves", new_reserf_path, :class => 'button-input' %> + <%= link_to "Add Bonus Reserves", new_reserve_path, :class => 'button-input' %> <%= link_to "Bonus Reserves Index", reserves_path, :class => "button-input" %> diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index ac033bf..53576d8 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -14,3 +14,7 @@ # ActiveSupport::Inflector.inflections(:en) do |inflect| # inflect.acronym 'RESTful' # end + +ActiveSupport::Inflector.inflections do |inflect| + inflect.irregular 'reserve', 'reserves' +end