Docker Features
Dev Containers
When attempting to open a dev container for Ruby on Rails in VSCode, the following error occurred:
...
Your Ruby version is 3.3.4, but your Gemfile specified 3.3.0
...
fix
-
Update the Ruby version in the Gemfile to the one error says in this case 3.3.4:
ruby '3.3.4'
-
Regenerate the Gemfile.lock:
rm Gemfile.lock
bundle install
-
save it and reopen the dev container then run
rails server
you can just update the dev container and put that one in the notes rather than putting the fix for it