- Add gems to Gemfile:
gem "sassc-rails"
gem "image_processing", "~> 1.2"
gem "devise"
# In development group:
gem "rails-erd"| task routes: :environment do | |
| Rails.application.eager_load! | |
| models = ApplicationRecord.descendants.collect(&:name).join("|").downcase | |
| controllers = ApplicationController.descendants.collect(&:name) | |
| controllers = (controllers.map { |controller| controller[0..-11].downcase }).join("|") | |
| if models | |
| puts `bundle exec rails routes -g "#{models}|#{controllers}"` | |
| else | |
| puts `bundle exec rails routes -g "#{controllers}"` | |
| end |
| #!/usr/bin/env bash | |
| # edit_credentials.sh | |
| # Usage: | |
| # ./edit_credentials.sh -> opens default (no --environment) | |
| # ./edit_credentials.sh -p -> opens production credentials | |
| # ./edit_credentials.sh --prod | |
| # ./edit_credentials.sh --production | |
| set -euo pipefail |
| require 'net/http' | |
| require 'uri' | |
| # === Remove Comments in Gemfile === | |
| # Path to the Gemfile | |
| gemfile_path = 'Gemfile' | |
| # Read the content of the Gemfile | |
| gemfile_content = File.read(gemfile_path) | |
| # Remove comments from the Gemfile | |
| gemfile_content.gsub!(/^#.*$/, '') |
gem "sassc-rails"
gem "image_processing", "~> 1.2"
gem "devise"
# In development group:
gem "rails-erd"| gem install solargraph | |
| gem install rubocop | |
| gem install rubocop-performance | |
| gem install rubocop-rails | |
| gem install rubocop-rspec | |
| gem install rubocop-md | |
| gem install erb-formatter | |
| gem install htmlbeautifier |
| { | |
| "[erb]": { | |
| "editor.defaultFormatter": "aliariff.vscode-erb-beautify", | |
| "editor.formatOnSave": true | |
| }, | |
| "[jsonc]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[ruby]": { | |
| "editor.defaultFormatter": "misogi.ruby-rubocop" |
| require: | |
| - rubocop-performance | |
| - rubocop-rails | |
| - rubocop-rspec | |
| - rubocop-md | |
| AllCops: | |
| NewCops: enable | |
| Exclude: | |
| - "vendor/**/*" |
usr/share/keyrings/ with the command:wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnpkg.gpg > /dev/nulletc/apt/sources.list.d/ with the contents:deb [signed-by=/usr/share/keyrings/yarnpkg.gpg] https://dl.yarnpkg.com/debian/ stable main