From the course: Ruby on Rails 6 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Access a Ruby on Rails project from a browser

Access a Ruby on Rails project from a browser - Ruby on Rails Tutorial

From the course: Ruby on Rails 6 Essential Training

Start my 1-month free trial

Access a Ruby on Rails project from a browser

- [Instructor] Now that we have our project created and configured, we're ready to learn how to access it from a web browser. The first step to being able to access your project is you need to go to the command line and navigate to the route of the project. From there, we can type a command that'll tell Ruby on Rails to launch a web server that we need to make our project available. The command is rails space server, or rails space S, for short. It'll become second nature because any time we want to look at our project and try it out, we're going to issue this command in the command line. When we're done using the web server, we can use control C to stop it again. While the web server is running, we can contact it from a browser. And we do that with a special URL, http://localhost:3000. Local host is just an alias for your local computer. If for any reason it doesn't work, you can also use http://127.0.0.1:3000. They…

Contents