Skip to content

Instantly share code, notes, and snippets.

View dmix's full-sized avatar

Daniel P. McGrady dmix

View GitHub Profile
NoMethodError in ApplyController#index
undefined method `mark_ongoing' for #<Candidate:0x96ee6d8>
RAILS_ROOT: /Users/dmix/development/Compass
Application Trace | Framework Trace | Full Trace
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-2.3.10/lib/active_record/attribute_methods.rb:260:in `method_missing'
(beanstalk job 0):1:in `sync_worker'
lib/async_extensions.rb:7:in `async_execute'
:0:in `after_create'
SystemStackError in ApplyController#index
stack level too deep
RAILS_ROOT: /Users/dmix/development/Compass
Application Trace | Framework Trace | Full Trace
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:635:in `merge'
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:635:in `each'
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:635:in `select'
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'
SystemStackError in ApplyController#index
stack level too deep
RAILS_ROOT: /Users/dmix/development/Compass
Application Trace | Framework Trace | Full Trace
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-2.3.10/lib/active_record/base.rb:3166:in `quoted_table_name'
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-2.3.10/lib/active_record/base.rb:2265:in `sanitize_sql'
/Users/dmix/.rvm/gems/ruby-1.8.7-p302/gems/activerecord-2.3.10/lib/active_record/base.rb:1528:in `merge_conditions'
=> Booting WEBrick
=> Rails 3.0.5 application starting in development on http://0.0.0.0:444
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/dmix/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.5/lib/active_support/railtie.rb:54:in `block in <class:Railtie>': Value assigned to config.time_zone not recognized.Run "rake -D time" for a list of tasks for finding appropriate time zone names. (RuntimeError)
from /Users/dmix/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `instance_exec'
from /Users/dmix/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `run'
from /Users/dmix/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.5/lib/rails/initializable.rb:50:in `block in run_initializers'
from /Users/dmix/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `each'
// controller code
var logsController = new Faux.Controller({
save_location: true,
element_selector: '.content',
partial: 'haml/logs',
partial_suffix: '.haml',
javascript: 'javascripts/logs',
title: 'Logs'
});
class Medication extends Backbone.Model
defaults = { "user_id": "1002" }
toJSON = ->
medication_option: _.clone(this.attributes)
clear = ->
if confirm('Are you sure you want to remove this item?')
this.destroy()
$(this.view.el).remove()
[{"created_at":"2010-12-15T03:58:30Z","id":41511,"name":"Advil","updated_at":"2010-12-15T03:58:30Z","user_id":1002},{"created_at":"2010-12-15T03:58:32Z","id":41512,"name":"Tylenol","updated_at":"2010-12-15T03:58:32Z","user_id":1002},{"created_at":"2010-12-15T18:32:21Z","id":41516,"name":"Insulin","updated_at":"2010-12-15T18:32:21Z","user_id":1002},{"created_at":"2010-12-15T19:16:18Z","id":41518,"name":"Humalin","updated_at":"2010-12-15T19:16:18Z","user_id":1002},{"created_at":"2010-12-15T19:16:36Z","id":41519,"name":"Novolog","updated_at":"2010-12-15T19:16:36Z","user_id":1002}]
(function() {
var Medication, MedicationCollection;
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
};
#
# Some helper methods
#
app =
activePage: ->
$(".ui-page-active")
reapplyStyles: (el) ->
el.find('ul[data-role]').listview();
class Medication extends Backbone.Model
defaults = { "user_id": "1002" }
toJSON = ->
medication_option: _.clone(this.attributes)
clear = ->
if confirm('Are you sure you want to remove this item?')
this.destroy()
$(this.view.el).remove()