README
-
Ruby version: 3.2.1 (latest)
-
Rails version: 7.0.4.2 (latest)
How to create this repo
- Run gem install rails -pre if needed.
- Run rails new rails_new.
- Run cd rails_new; echo 'rvm use 3.2.10@ruby3.2-rails7.0 --create' > .rvmrc
- Created repo on Github and fixed .git/config. Run "git pull" to sync.
- Add .travis.yml file such as:
language: ruby
rvm:
- 3.2.1
before_install: gem install bundler
cache: bundler
- Remove Gemfile comments. (egrep -v "^#|^ #" Gemfile |uniq) Removed most of the gem numbers.
- Optionally, add a LICENSE file.
- Add 3 sorbet gems.
gem 'sorbet', :group => :development
gem 'sorbet-runtime'
gem 'sorbet-rails'
- Add 'dalli' and 'redis' gem to Gemfile to avoid sorbet error messages.
- Run "bundle" and fix any Gemfile syntax issues.
- Run "rails db:create db:migrate db:setup" to avoid sorbet error messages.
- Then to push to GitHub.
How to know if you have a sane repo
- Run bundle with no errors.
- Run rake (expect 0 tests) with no errors and 2 known warnings.
warning: class variable access from toplevel
- When you go to "localhost:3000" in browser, you expect to see "Yay!: You're on Rails!" message and no errors.