diff --git a/app/controllers/federal_tax_brackets_controller.rb b/app/controllers/federal_tax_brackets_controller.rb index fd6f2e4..88426d5 100644 --- a/app/controllers/federal_tax_brackets_controller.rb +++ b/app/controllers/federal_tax_brackets_controller.rb @@ -22,7 +22,8 @@ def edit # POST /federal_tax_brackets or /federal_tax_brackets.json def create @federal_tax_bracket = FederalTaxBracket.new(federal_tax_bracket_params) - @federal_tax_bracket.update_rate(rate: params[:rate]) + + @federal_tax_bracket.update_rate(rate: federal_tax_bracket_params[:rate].to_i) respond_to do |format| if @federal_tax_bracket.save