This file contains hidden or 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 SetupHstore < ActiveRecord::Migration | |
def self.up | |
enable_extension "hstore" | |
end | |
def self.down | |
disable_extension "hstore" | |
end | |
end |
This file contains hidden or 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
AddEditView = Backbone.View.extend({ | |
events: { | |
"change input": "fieldChanged", | |
"change select": "selectionChanged", | |
}, | |
selectionChanged: function(e){ | |
var field = $(e.currentTarget); | |
var value = $("option:selected", field).val(); |