I have created the new rails project and trying to run it without doing any changes. I am using the power shell in windows 10. When I am running the rails s command its not starting the server. Please see attached image. I have highlighted the installed ruby version.
3 Answers
The error is there in the output, you do not have a rails app to start a server for, you can create a new app with:
rails new <name-for-your-app> Follow along this tutorial to help you get started with rails.
1 Comment
amanpreet singh
No, this is not the case. I created the app first then entered into the folder and then I am trying to start the server.
I think this command will work or you are missing something which is required to run rails server
bin/rails server 2 Comments
amanpreet singh
No, its not working. I am getting the below error. Executed this script on windows power shell.
bin/rails : The term 'bin/rails' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + bin/rails server + ~~~~~~~~~ + CategoryInfo : ObjectNotFound: (bin/rails:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Francesco Tagliani
Can you create new rails project again? And attach the screenshot here?
