rails new 笔记

~/.railsrc

-d postgresql

Help

-B, [--skip-bundle]
-J, [--skip-javascript]

.gitattributes

/.rubocop-https-*

.gitattributes

/bin/bundle -diff
/Gemfile.lock -diff

Steps

Config lograge

config/initializers/lograge.rb

Rails.application.configure do
  config.lograge.enabled = true

  config.lograge.custom_options = lambda do |event|
    params = event.payload[:params]&.except(
      'controller', 'action', 'format'
    ) || {}

    { time: Time.current, params: params }
  end
end