local: gem list | grep rails
local: gem install rails -v 4.2.10
local: rails _4.2.10_ new myapp
Passenger: https://www.phusionpassenger.com/library/deploy/apache/automating_app_updates/ruby/
DigitalOcean/Apache: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-passenger-and-apache-on-ubuntu-14-04
digitalocean.com: create Droplet (ubuntu 14.04.5 x32)
wrap the command in double backticks, dont forget a whitespace when the escaped backtick is at the end
sudo usermod -a -G rvm `whoami`
Type q:
from Normal-Mode
"np
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
After install zsh | |
- brew update | |
- brew install nvm | |
- mkdir ~/.nvm | |
after in your ~/.zshrc or in .bash_profile if your use bash shell: | |
export NVM_DIR=~/.nvm | |
source $(brew --prefix nvm)/nvm.sh |
ticket https://brandslisten.atlassian.net/browse/BLCR-3399
params:
# participants_total
# returns count of all confirmed or auto-confirmed participants
has_many :participants, -> { distinct.joins(:participation_requests).where(bl_participation_requests: { status: %w[confirmed auto_confirmed] }) }, through: :participation_requests, source: :user
# participation_requests_total