I just run rails new demo
and I get this error:
Could not find gem 'sprockets-rails' in locally installed gems.
What am I doing wrong?
I’m using a macbook air M1 with ruby 3.3.4 (brew) and rails 7.2.1
I just run rails new demo
and I get this error:
Could not find gem 'sprockets-rails' in locally installed gems.
What am I doing wrong?
I’m using a macbook air M1 with ruby 3.3.4 (brew) and rails 7.2.1
gem install bundler
fixed it.
Side note, checkout the nextgen gem for generating new Rails apps. Is uses an interactive questionaire and does all the mundane setup to have a nice app with good defaults from the start. https://github.com/mattbrictson/nextgen