Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Chapter 1: Error when Running bin/rails generate rspec:install #125

Open
Roveri91 opened this issue Dec 27, 2023 · 1 comment
Open

Chapter 1: Error when Running bin/rails generate rspec:install #125

Roveri91 opened this issue Dec 27, 2023 · 1 comment

Comments

@Roveri91
Copy link

Hi, i am new to rails and i would like to learn more about Rspec that's why i purchased this book.
Ufortunatelly i didn't get to far as i got stuck in the first chapter; i am trying to follow along with the source code but when i run "bin/rails generate rspec:install" i get a bunch of error like "/home/username/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb:109:in `initialize': wrong number of arguments (given 3, expected 2) (ArgumentError)"

Any thoughs about what could cause the problem.

Many thanks

@ken-wong
Copy link

I saw the ruby version you installed is 3.1.2
The book have set the ruby version to 2.4.
You may downgrade the ruby version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants