-
-
Save walterpaulo/52eb8ad8a9c82cdf70ab3890f6b1861e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dicas de Ruby on Rails | |
## Gerenciador de Versão, rvm | |
### Instalação no sitema operacional GNU/Debian | |
Digite este comando no terminal | |
$ \curl -sSL https://get.rvm.io | bash | |
Atualiza o script para configuração de usuário | |
$ source $HOME/.bashrc | |
$ /bin/bash --login | |
$ rvm use useruby-3.1.3 | |
Verificar versão do ruby | |
$ ruby --version | |
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux] | |
### Instalação da último versão do Ruby on Rails(ror) | |
$ em install rails | |
Verificar a versão no ror | |
$ rails --version | |
Rails 7.0.5 | |
### Criar um Projeto | |
Digite o comando | |
$ rails new MeuProjeto | |
$ cd MeuProjeto | |
Adicione um lib de estilo, adicione o bootstrap-generators no arquivo Gemfile | |
gem 'bootstrap-generators', '3.3.4' | |
$ bundle install | |
$ rails generate bootstrap:install | |
Digite yes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment