Keiffy101
Keiffy101

Reputation: 15

First time use of ruby server - Command gives no response

I just set up my Ruby server, it appears successful as I am able to see the welcome page at localhost:3000. I am following the beginner tutorial at http://api.rubyonrails.org.

The very first command I'm asked to enter is

$ bin/rails generate controller welcome index

The terminal simply goes to the next line awaiting another command, no folders created as would be expected. Any ideas why this would happen? I have restarted the Server, and created a new app from scratch, any help with what could be wrong is appreciated.

Upvotes: 1

Views: 135

Answers (2)

Waynn Lue
Waynn Lue

Reputation: 11375

Summarizing the answer from the comments here.

The problem was that the OP was trying to run the command inside of rails server. The fix was to either run the command in another Terminal window, or before starting the server.

Upvotes: 1

devkaoru
devkaoru

Reputation: 1162

have you tried bundle exec rails controller welcome index ? You're bundler or env may not be properly setup.

Upvotes: 0

Related Questions