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
== RenameApiKeyToSpreeApiKey: migrating ====================================== | |
-- rename_column(:spree_users, :api_key, :spree_api_key) | |
rake aborted! | |
An error has occurred, this and all later migrations canceled: | |
Could not find table 'spree_users' | |
Tasks: TOP => db:migrate | |
(See full trace by running task with --trace) |
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
== AddIndexOnUsersPersistenceToken: migrating ================================ | |
-- add_index(:users, :persistence_token) | |
rake aborted! | |
An error has occurred, this and all later migrations canceled: | |
SQLite3::SQLException: table users has no column named persistence_token: CREATE INDEX "index_users_on_persistence_token" ON "users" ("persistence_token") | |
Tasks: TOP => db:migrate | |
(See full trace by running task with --trace) |
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
NoMethodError in Spree::OmniauthCallbacksController#spree_works | |
undefined method `collect' for nil:NilClass | |
Rails.root: /Users/briandquinn/Development/store_works | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/spree/omniauth_callbacks_controller.rb:19:in `check_for_store_ownership' | |
app/controllers/spree/omniauth_callbacks_controller.rb:4:in `spreeworks' | |
actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action' |
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
== AddApiKeyToSpreeUsers: migrating ========================================== | |
-- add_column(:spree_users, :api_key, :string, {:limit=>40}) | |
rake aborted! | |
An error has occurred, this and all later migrations canceled: | |
SQLite3::SQLException: no such table: spree_users: ALTER TABLE "spree_users" ADD "api_key" varchar(40) |
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
" changing tabs with number keys | |
let mapleader=',' | |
map <leader>1 1gt | |
map <leader>2 2gt | |
map <leader>3 3gt | |
map <leader>4 4gt | |
map <leader>5 5gt | |
map <leader>6 6gt | |
map <leader>7 7gt | |
map <leader>8 8gt |
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
compile_styles: function(){ | |
var palette = Spraycan.palettes.find(function(palette){ return palette.get('active') }); | |
var config_template = JST["spraycan/templates/shared/less_config"]; | |
var less_css = config_template({ palette: palette}); | |
less_css += window.frames[0].$jQ('style#source')[0].textContent; | |
var parser = less.Parser(); | |
parser.parse(less_css, function(error, result){ | |
if(error == null){ |
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
<%= radio_button_tag 'option', 'blue', true %> Blue | |
<%= radio_button_tag 'option', 'green' %> Green | |
<%= radio_button_tag 'option', 'yellow' %> Yellow | |
<%= radio_button_tag 'option', 'brown' %> Brown | |
<%= radio_button_tag 'option', 'black' %> Black |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: puppet | |
# Required-Start: $network $named $remote_fs $syslog | |
# Required-Stop: $network $named $remote_fs $syslog | |
# Should-Start: puppet | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO |
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
if cluster=='beta' | |
role :web, '10.10.10.59' | |
role :app, '10.10.10.59' | |
role :db, '10.10.62.62', :primary => true | |
else | |
role :web, '10.10.10.216' | |
role :app, '10.10.10.216' | |
role :db, '10.10.10.216', :primary => true |
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
Spree.Admin.Views.Products.Edit = Backbone.View.extend({ | |
events: { | |
'submit form': 'save', | |
'click input[value="Cancel"]': 'cancel', | |
'click a#delete_variant': 'delete_variant', | |
'change :input': 'changed' | |
}, | |
render: function() { | |
this.$el.html(JST['admin/templates/products/edit']({ product: this.model })); |