Fix possible SQL injection issue in NameController
Fix possible SQL injection issue in NameController

Code Climate/Brakeman id'd "possible SQL injection" on
- line 1197 `AND o.vote_cache >= #{minimum_confidence}`
- line 1218 `WHERE rank = #{Name.ranks[:Genus]}`

Fixed l.1197 by earlier calling `to_i` on user-supplied params
Line 1218 is a false positive, as `Name.ranks[:Genus]` is not user supplied

pellaea/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,JoeCohen/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,pellaea/mushroom-observer,JoeCohen/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,pellaea/mushroom-observer,pellaea/mushroom-observer,pellaea/mushroom-observer,JoeCohen/mushroom-observer,pellaea/mushroom-observer,MushroomObserver/mushroom-observer,pellaea/mushroom-observer,MushroomObserver/mushroom-observer