Rails 6 tips December 11, 2018 Get link Facebook X Pinterest Email Other Apps 1. Dig session Instead session.to_hash.dig("user", :name, :first) U can use session.dig("user", :name, :first) 2. Filter custom attri User.filter_attributes = [:email, :password] or in config/filter_parameter_logging.rb 3. Comments
Comments
Post a Comment