Skip to content

Instantly share code, notes, and snippets.

View rubytastic's full-sized avatar

rubytastic rubytastic

View GitHub Profile
Ionic and ngCordova upload example
ActiveRecord::ConnectionTimeoutError - could not obtain a database connection within 5.000 seconds (waited 5.001 seconds):
activerecord (4.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:190:in `block in wait_poll'
activerecord (4.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `wait_poll'
activerecord (4.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:136:in `block in poll'
/Users/Jordan/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
activerecord (4.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:146:in `synchronize'
activerecord (4.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:134:in `poll'
activerecord (4.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:423:in `acquire_connection'
activerecord (4.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:356:in `block in checkout'
/Users/Jordan/.rvm/ru
(gem) activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb
18
19 begin
20 yield
21 rescue Exception => e
class JavascriptsController < ApplicationController
skip_before_filter :authenticate_user!
respond_to :js
layout false
#caches_page :locale # don't know if this is reset on server restart.
def locale
# http://edgeguides.rubyonrails.org/caching_with_rails.html
module Tolk
module Import
def self.included(base)
base.send :extend, ClassMethods
end
module ClassMethods
def import_secondary_locales
module Tolk
module Import
def self.included(base)
base.send :extend, ClassMethods
end
module ClassMethods
def import_secondary_locales
locales = Dir.entries(self.locales_config_path)
@student = Student.new(:user_id => current_user.id,
:department => params[:department].to_hash
)
def index
params[:student].merge(:user_id => current_user.id)
@student = student.new(params[:student])
end
@student = student.new(params[:student].merge({:user_id => current_user.id}))
undefined method `merge' for nil:NilClass
%frameset{:cols => "25%,*,25%"}
%frame{:src => "frame_a.htm"}
%frame{:src => "frame_b.htm"}
%frame{:src => "frame_c.htm"}