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
$ = jQuery | |
$ -> | |
# | |
# Some helper methods | |
# | |
app = | |
activePage: -> | |
$(".ui-page-active") | |
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
# | |
# Some helper methods | |
# | |
app = | |
activePage: -> | |
$(".ui-page-active") | |
reapplyStyles: (el) -> | |
el.find('ul[data-role]').listview(); |
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
# | |
# Some helper methods | |
# | |
app = | |
activePage: -> | |
$(".ui-page-active") | |
reapplyStyles: (el) -> | |
el.find('ul[data-role]').listview(); |
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 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() |
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 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() |
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
(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; | |
}; |
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
[{"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}] |
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
=> 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' |
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
// controller code | |
var logsController = new Faux.Controller({ | |
save_location: true, | |
element_selector: '.content', | |
partial: 'haml/logs', | |
partial_suffix: '.haml', | |
javascript: 'javascripts/logs', | |
title: 'Logs' | |
}); |
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
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' |