| Start |
|---|
| How to install Ruby on Rails 5 on RVM RVM is a great tool to manage your ruby versions and set up your working environment. Assuming you already have RVM installed, to get the latest version of ruby, which is needed for these examples, open a terminal and run: Check your ruby version by running: To install Rails 5, first create a new gemset using the latest ruby version and then install rails: To check your rails version, run: |
| Creating a Ruby on Rails 5 API To create a new Rails 5 API, open a terminal and run the following command: The following file structure will be created: This file structure will be created inside a new folder called Enter the folder and install the dependencies: You should also start your database. Rails uses SQLite as a default database. To create it, run: Now run your appplication: When you open your browser at |
Read Article
https://develop.horje.com/learn/1434/reference