0
0
Ruby on Railsframework~5 mins

Rails installation and setup - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the first step to install Ruby on Rails?
Install Ruby on your computer first because Rails is a Ruby framework. You can download Ruby from the official website or use a version manager like rbenv or RVM.
Click to reveal answer
beginner
How do you install Rails after Ruby is installed?
Use the command gem install rails in your terminal. This downloads and installs the Rails framework on your system.
Click to reveal answer
beginner
What command creates a new Rails project?
Use rails new project_name. This sets up a new folder with all the files and folders Rails needs to start your app.
Click to reveal answer
intermediate
Why do you run bundle install after creating a new Rails app?
It installs all the Ruby gems (libraries) your app needs, as listed in the Gemfile. This makes sure your app has all the tools it requires.
Click to reveal answer
beginner
How do you start the Rails server to see your app in a browser?
Run rails server or rails s in your project folder. Then open http://localhost:3000 in your browser to see your app running.
Click to reveal answer
Which command installs the Rails framework?
Agem install rails
Brails new
Cbundle install
Druby install rails
What does rails new myapp do?
AStarts the Rails server
BUpdates Rails to the latest version
CCreates a new Rails project named myapp
DInstalls Ruby
Why is Ruby needed before installing Rails?
ARails is a Ruby framework and needs Ruby to run
BRuby installs Rails automatically
CRuby is a database
DRuby is a web server
What is the purpose of bundle install?
ATo start the Rails server
BTo install all gems listed in the Gemfile
CTo create a new Rails app
DTo uninstall Rails
After running rails server, where do you go to see your app?
Ahttp://127.0.0.1:5000
Bhttp://railsapp.com
Chttp://localhost:8080
Dhttp://localhost:3000
Explain the steps to install and set up a new Rails application from scratch.
Think about what you need before Rails, how to get Rails, and how to start your app.
You got /5 concepts.
    Describe what happens when you run the command 'rails new project_name'.
    Imagine setting up a new workspace for your app.
    You got /4 concepts.