warning: constant ::Fixnum is deprecated When generating new model

This warnings appear because you are using ruby 2.4.0. This version introduced this change: Unify Fixnum and Bignum into Integer See here for the announcement: https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/ The warnings come from the activesupport gem which is part of rails and will be fixed in an upcoming release. For now you can just ignore those warnings. Update: … Read more

Difference between `not` and `!` in ruby

They are almost synonymous, but not quite. The difference is that ! has a higher precedence than not, much like && and || are of higher precedence than and and or. ! has the highest precedence of all operators, and not one of the lowest, you can find the full table at the Ruby docs. As an example, consider: In the first example, ! has the highest precedence, so you’re effectively saying false && … Read more