Multiple choice technology web technology

Which of the following commands creates a rails application?

  1. rails create app sampleapplication

  2. rails sampleapplication

  3. rails create sampleapplication

  4. rails app sampleapplication

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To create a new Rails application, you simply type rails followed by your application name. The Rails framework automatically generates all necessary directories and files. Options A, C, and D incorrectly add create or app keywords that aren't part of the standard command syntax.