Ruby on Rails Guides: Getting Started with Rails

13 flashcards · Programming Languages · by DoodlingDev

  1. Don't Repeat Yourself, one of two guiding principles of The Rails Philosophy, states what?

    "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." By not writing the same information over and over again, our code is more maintainable, more extensible, and less buggy.

  2. Convention Over Configuration, one of two guiding principles of The Rails Philosophy, states what?

    Rails has opinions about the best way to do many things in a web application, and defaults to this set of conventions, rather than require that you specify minutiae through endless configuration files.

  3. What are the two guiding principles of The Rails Philosophy?

    Don't Repeat Yourself & Convention Over Configuration

  4. What two prerequisites need to be installed on a machine before it can run the default Ruby on Rails installation?

    Ruby & SQLite3

  5. Rails 7 requires what minimum Ruby version?

    2.7.0

  6. What is the command to start a new Rails project?

    rails new <project name>

  7. How can we see all the command line options that Rails application generator accepts in the terminal?

    rails new --help

  8. What folder in a newly created Rails app contains controllers, models, and views, amongst others, for the project?

    app/

  9. What folder in a newly created Rails app contains the rails script that starts the app?

    bin/

  10. What folder in a newly created Rails app contains configuration for the app's routes, database and more?

    config/

  11. What file in an application's root contains the configuration for Rack-based servers?

    config.ru

  12. What folder in a newly created Rails app contains the database schema and migrations?

    db/

  13. What file in a project's root specifies what dependencies are needed for our Rails applications?

    Gemfile