This gist is relevant while this Devise issue#5446 is not closed or a better solution is not suggested.
Not getting flashes errors using turbo.
This gist is relevant while this Devise issue#5446 is not closed or a better solution is not suggested.
Not getting flashes errors using turbo.
--database=postgresql | |
--skip-action-cable | |
--skip-action-mailer | |
--skip-bundle | |
--skip-javascript | |
--skip-keeps | |
--skip-test |
javascript:taskName = document.getElementsByClassName('AutogrowTextarea-input')[0].value;taskLink = window.location.href;taskNameShort = taskName.replace(/\W/g, '').replace(/[A-Z]/g, letter => ` ${letter.toLowerCase()}`).trim().replace(/\s/g, '_').substring(0,30);result = `${taskLink.match(/.*([0-9]{16})/).pop()}-${taskNameShort}`; el = document.createElement('textarea'); el.value = result; document.body.appendChild(el); el.select();document.execCommand("copy"); document.body.removeChild(el);
replace after_filter
and before_filter
with after_action
and before_action
callbacks.
after_filter
and before_filter
are both deprecated in rails 5
Rails 5 stops some raw SQL and prevents SQL injections. For raw SQL there will be warning (error in rails 6) so we should change raw SQL string literals to Arel objects Arel.sql('')
:condition
no longer an acceptable key (replace with where
)
:order
is no longer an option has_many :order
(block)
#!/bin/sh | |
# W | |
# R RW W. | |
# RW::::RW DR::R | |
# :RRRRRWWWWRt:::::::RRR::::::E jR | |
# R.::::::::::::::::::::::::::Ri jiR:::R | |
# R:::::::.RERRRRWWRERR,::::::Efi:::::::R GjRRR Rj | |
# R::::::.R R:::::::::::::;G RRj WWR RjRRRRj | |
# Rt::::WR RRWR R::::::::::::::::fWR::R; WRW RW R | |
# WWWWRR:::EWR E::W WRRW:::EWRRR::::::::: RRED WR RRW RR |
#!/bin/sh | |
# W | |
# R RW W. | |
# RW::::RW DR::R | |
# :RRRRRWWWWRt:::::::RRR::::::E jR | |
# R.::::::::::::::::::::::::::Ri jiR:::R | |
# R:::::::.RERRRRWWRERR,::::::Efi:::::::R GjRRR Rj | |
# R::::::.R R:::::::::::::;G RRj WWR RjRRRRj | |
# Rt::::WR RRWR R::::::::::::::::fWR::R; WRW RW R | |
# WWWWRR:::EWR E::W WRRW:::EWRRR::::::::: RRED WR RRW RR |
function rubucop_current_changes() { | |
current_branch=$(git branch --show-current) | |
git diff $branch_name develop --name-status | grep '\.rb$' | xargs rubocop | |
} | |
alias zshreload="source ~/.zshrc" |
[2] pry(#<QuoteFinancial>)> '%s' % 'test' | |
=> "test" | |
pry(#<QuoteFinancial>)> '%{name} %{email}' % {name: 'alex', email: '[email protected]'} | |
=> "alex [email protected]" |