Skip to content

Instantly share code, notes, and snippets.

@overdrivemachines
Created November 21, 2023 00:42
Show Gist options
  • Save overdrivemachines/5bca2343ff27e889fc6e685dd0f22559 to your computer and use it in GitHub Desktop.
Save overdrivemachines/5bca2343ff27e889fc6e685dd0f22559 to your computer and use it in GitHub Desktop.
Gems Added to Gemfile and Configuration
  • Add gems to Gemfile:
gem "sassc-rails"
gem "image_processing", "~> 1.2"
gem "devise"


# In development group:
gem "rails-erd"
gem "chusaku", require: false
gem "annotate"
gem "faker"
# Preview email in the default browser instead of sending it.
gem "letter_opener"
# Format ERB Files
gem "erb-formatter"
  • Rails ERD (Entity Relationship Diagram)

    • Add .erdconfig file:
    echo "attributes: content,foreign_key" > .erdconfig
    echo "filetype: png" >> .erdconfig
    • Install:
    bundle exec rails g erd:install
  • Annotate Models and Routes file

    • Create routes.rake file:
    curl -LJ --output lib/tasks/routes.rake https://github.com/overdrivemachines/dipen_chauhan/raw/master/lib/tasks/routes.rake
    • Install:
    rails g annotate:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment