Skip to content

Commit

Permalink
altered inflector to handle reserve correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stayman committed Jun 16, 2016
1 parent 8b34654 commit 15c0c0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/games/human_control.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<% end %>
</table>
<%= 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" %>
</section>

Expand Down
4 changes: 2 additions & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ default: &default
adapter: postgresql
pool: 5
timeout: 5000
username: zstayman
password:
username: root
password: root

development:
<<: *default
Expand Down
4 changes: 4 additions & 0 deletions config/initializers/inflections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym 'RESTful'
# end

ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'reserve', 'reserves'
end

0 comments on commit 15c0c0c

Please sign in to comment.