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.
# load the gem from the local filesystem so we can work on it | |
gem 'couch_record', :path => '../couch_record' |
class I18n::Backend::Simple | |
module Implementation | |
protected | |
def lookup(locale, key, scope = [], options = {}) | |
init_translations unless initialized? | |
keys = I18n.normalize_keys(locale, key, scope, options[:separator]) | |
keys.inject(translations) do |result, _key| |
//= require jquery | |
//= require jquery_ujs | |
//= require_tree . | |
// ^ I am assuming that bootstrap3-dialog is in the tree | |
//GLOBAL JQuery Functaionality | |
$(function(){ | |
/*** CONFIRM MODAL OVERRIDE ***/ | |
//override the use of js alert on confirms |
function textSize(text) { | |
if (!d3) return; | |
var container = d3.select('body').append('svg'); | |
container.append('text').attr({ x: -99999, y: -99999 }).text(text); | |
var size = container.node().getBBox(); | |
container.remove(); | |
return { width: size.width, height: size.height }; | |
} | |
// Usage: textSize("This is a very long text"); |
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/ | |
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane | |
require 'optparse' | |
options = {} | |
class Parser | |
def self.parse(args) | |
options = {} | |
opt_parser = OptionParser.new do |opts| | |
opts.banner = 'Usage: demo.rb [options] ARG...' | |
opts.separator 'A demo of optparse.' |
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.