This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ionic and ngCordova upload example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gem) activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb | |
18 | |
19 begin | |
20 yield | |
21 rescue Exception => e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tolk | |
module Import | |
def self.included(base) | |
base.send :extend, ClassMethods | |
end | |
module ClassMethods | |
def import_secondary_locales |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@student = Student.new(:user_id => current_user.id, | |
:department => params[:department].to_hash | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def index | |
params[:student].merge(:user_id => current_user.id) | |
@student = student.new(params[:student]) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@student = student.new(params[:student].merge({:user_id => current_user.id})) | |
undefined method `merge' for nil:NilClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%frameset{:cols => "25%,*,25%"} | |
%frame{:src => "frame_a.htm"} | |
%frame{:src => "frame_b.htm"} | |
%frame{:src => "frame_c.htm"} |
NewerOlder