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
{ | |
"id": "rubygems", | |
"application": { | |
"production": { | |
"rails_postgresql_host" : "", | |
"rails_postgresql_db": "", | |
"rails_postgresql_user": "", | |
"rails_postgresql_password": "", | |
"s3_key": "", | |
"s3_secret": "", |
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 Player < ActiveRecord::Base | |
def salary_valid_for_year? year | |
send("s#{year}") != 0 && send("status#{year}") != 0 && !send("status#{year}").nil? | |
end | |
def salary_for_year year | |
send("s#{year}") | |
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
window.MyView = Backbone.View.extend({ | |
initialize: -> | |
_.bindAll(this,'render') | |
this.template = window.JST["MyView"] | |
this.model.bind('change', this.render) | |
render: -> | |
$(this.el).html(this.template(this.model.toJSON())) | |
events: { |