I’m trying to create the following resource in a Rails application
resources :sessions, only: [:new, :create, :destroy]
However, when I run this command I get the following error
zsh: bad pattern: [:new,
What could be causing this error?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s not a command, that’s an entry in a
routes.rbfile.Edit the file instead of trying to run it from the command line; no more command line error.