Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

0 Días
12 Hrs
33 Min
41 Seg

Configuración

2/33
Resources
Transcript

How to make sure you have the necessary tools for your Ruby on Rails project?

To start a new Ruby on Rails project, it is crucial to make sure you have all the necessary tools. This process will not only help avoid future technical problems, but will also ensure a smooth and efficient workflow. Here's how to verify that you have everything you need installed on your system.

How to verify Ruby installation?

Ruby is the core of any application developed with Ruby on Rails. Therefore, making sure that it is installed correctly on your machine is the first step to start any project.

  1. Access the terminal: approximately all configurations are done from the command line.

  2. Check the Ruby version: To find out the version of Ruby installed, enter the following command in the terminal:

    ruby --version

    The output will tell you which version is installed. An example might be "Ruby 2.5.1". It is recommended to use version 2.5 with any subversion (Minor) for this specific project.

Which database should I use?

Effective database management is essential in any web application.

  • Database Security 3: Security 3 is used for this particular project, however, other options are also valid.
  • Possibility of using Postgres: If you have used PostgreSQL in previous projects, it is a viable solution here as well, since no database-specific functionality will be used that may incur incompatibilities.

How to confirm that Rails is installed?

Rails is the framework that allows you to build web applications in an agile and structured way, so it is essential to have it configured correctly.

  1. Install Rails: If you don't have Rails installed, you can run the following command in your terminal:

    gem install rails -v 5.2.1

    This will install version 5.2.1, which is the recommended version for this guide.

Recommendation to continue your learning

Starting a project requires initial commits from the development environment. However, once this process is complete, you will be ready to dive into the development of your application with all the tools configured and optimized. By familiarizing yourself with these steps, you ensure that any technical hurdles related to configuration are minimized, allowing you to focus more time and energy on the creative component of Ruby on Rails web development. If you are on the road to learning Ruby on Rails, always stay motivated, every line of code is one step closer to becoming an expert. Keep going!

Contributions 7

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?

Para instalar Rails me gusta mucho esta http://installrails.com/

Esta guia me fue muy util para instalar Ruby on Rails en ubuntu 18.04 https://gorails.com/setup/ubuntu/18.04

Para instalar postgres como base de datos desde un contenedor, con el usuario dev y la contraseña: developer se puede hacer de la siguiente manera:

  • intalar docker o podman
  • ejecutar docker pull docker.io/postgres:11
  • ejecutar docker run --name postgres-platzi -p 127.0.0.1:5432:5432 -e POSTGRES_USER=dev -e POSTGRES_PASSWORD=developer -d docker.io/postgres:11

¡Listo!

Hola Iris, Depende de que OS uses (MacOS, Windows, Linux, etc).

Instalacion de rails -> gem install rails -v 5.2.1

Como instalo sqlite3???

Hola a todos, estoy intentando crear un nuevo proyecto y me sale es siguiente error.

rails aborted!
LoadError: libffi.so.7: cannot open shared object file: No such file or directory - /home/rai/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/lib/ffi_c.so