Adding Bootstrap to Rails 7
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/
INSTRUCTIONS
- Add the following to Gemfile: gem "bootstrap" gem "sassc-rails"
| #!/bin/bash | |
| # Cores para saída | |
| VERDE="\e[32m" | |
| VERMELHO="\e[31m" | |
| AMARELO="\e[33m" | |
| RESET="\e[0m" | |
| check_software() { | |
| NOME="$1" |
| vim | |
| vim [opções] [arquivo] | |
| São algumas das opções deste aplicativo | |
| -b : permite editar arquivo binário. | |
| -h : exibe opções do aplicativo. | |
| +n : inicializa o cursor na n-ésima linha. |
Adding Bootstrap to Rails 7
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/
INSTRUCTIONS
| Para desabilitar o teclado interno no Ubuntu, é preciso incluir o parâmetro de Kernel "i8042.nokbd" para que a inicialização não utilize o teclado embutido. | |
| "i8042.nokbd [HW] Não cheque ou crie uma porta de teclado" | |
| 1- Abra um terminal a partir da tela de busca de programas ou com o atalho CONTRL + ALT + T | |
| 2- Digite no terminal o comando abaixo em modo administrador, vai requisitar a sua senha: | |
| sudo gedit /etc/default/grub |
REST API response format based on some of the best practices
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |