setup your editor first
export EDITOR=<your editor of choice, eg: vim>
To edit your secrets use:
rails credentials:edit
The above command is editing your config/credentials.yml.enc file.
| # The steps are taken out of https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04 | |
| # Steps to download and run this on your machine: | |
| ## Download the script | |
| # wget https://gist.githubusercontent.com/binarygit/de4ba791bae94c633411d0fb51333728/raw/e3845300fe16fb8751a29757db2719d4cbecb591/install-ruby-and-rails.bash | |
| ## Source to run it because running the script like a command | |
| ## will run it in a new process. This new process won't be able | |
| ## to access the updated bashrc when we update it when installing |
| #!/usr/bin/env bash | |
| cd ~/Documents/job_scraper | |
| ruby main.rb | |
| cd ~/Documents/jobs | |
| git ci -am "Deployed on $(date)" | |
| git push |
setup your editor first
export EDITOR=<your editor of choice, eg: vim>
To edit your secrets use:
rails credentials:edit
The above command is editing your config/credentials.yml.enc file.
| import ApplicationController from "./application_controller"; | |
| const LEAVING_PAGE_MESSAGE = "Are you sure you want to leave?"; | |
| export default class extends ApplicationController { | |
| static values = { dirty: Boolean }; | |
| static targets = ["submitBtn"]; | |
| connect() { | |
| // find all inputs within the form | |
| // and attach eventListeners |