To get the password, use request. params["model"]["password"]. Working with a HashWithIndifferentAccess, which is part of ActiveSupport, is an exception. Strings or symbols can be used to access the same items in hashes of that kind.
Hash is a collection of unique keys and values in Ruby. Hash is similar to an Array, except that it indexes with arbitrary keys of any object type. The order in which various iterators return keys and their values in Hash is random and will rarely be in the insertion order.
Share a personalized message with your friends.