Skip to content

Instantly share code, notes, and snippets.

View jaryl's full-sized avatar
🪬
Indie hacking

Jaryl Sim jaryl

🪬
Indie hacking
View GitHub Profile
@jaryl
jaryl / generators.rb
Last active August 9, 2024 09:22
Sample generators.rb file for rails apps
Rails.application.config.generators do |generate|
# generate.assets true # create assets when generating a scaffold
# generate.force_plural false # allow pluralized model names
# generate.helper true # generate helpers
# generate.integration_tool :test_unit # which tool generates integration tests (might be overwritten automatically if using rspec-rails)
# generate.system_tests :test_unit # which tool generates system tests (might be overwritten automatically if using rspec-rails)
# generate.orm false # which orm to use (false uses Active Record)
# generate.resource_controller :controller # which generator generates a controller when using bin/rails generate resource
# generate.resource_route true # generate a resource route definition
# generate.scaffold_controller :scaffold_controller # which generator generates a controller when using bin/rails generate scaffold
@jaryl
jaryl / Dockerfile
Created July 11, 2025 00:58
.devcontainer
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
ARG RUBY_VERSION=3.4.4
FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION