Skip to content

Instantly share code, notes, and snippets.

@walterpaulo
Last active June 6, 2023 09:40
Show Gist options
  • Save walterpaulo/52eb8ad8a9c82cdf70ab3890f6b1861e to your computer and use it in GitHub Desktop.
Save walterpaulo/52eb8ad8a9c82cdf70ab3890f6b1861e to your computer and use it in GitHub Desktop.
# 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