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
| ActiveRecord::StatementInvalid: Mysql2::Error: Unknown column 'spree_option_values.option_type_id' in 'where clause': SELECT `variants`.* FROM `variants` INNER JOIN `option_values_variants` ON `option_values_variants`.`variant_id` = `variants`.`id` INNER JOIN `option_values` ON `option_values`.`id` = `option_values_variants`.`option_value_id` WHERE `variants`.`product_id` = 1060500593 AND (variants.deleted_at IS NULL) AND (spree_option_values.option_type_id = 935339117 AND spree_option_values.name = '8') AND (spree_variants.count_on_hand > 0) |
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
| def stocked_shoe_colors(product,size) | |
| available_colors = product.variants_including_master.joins(:option_values).where("option_values.option_type_id = ? AND option_values.name = ?", | |
| OptionType.find_by_name("shoe-size"), size).where("variants.count_on_hand > 0").map do |v| | |
| var = Variant.find_by_id(v.id).option_values.map(&:presentation) 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
| <div class='grid_7 alpha suffix_2 result'> | |
| <label>PSA Test Result:</label> | |
| 1 | |
| <input class='psaInputs' id='psaInput-1' type='text'> | |
| </div> | |
| <div class='grid_5 omega date'> | |
| <label>Date:</label> | |
| <input class='hasDatePicker' type='text'> | |
| </div> |
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
| phong:~/Sites/twolips[kagetsuki_fix]$ rake db:drop | |
| phong:~/Sites/twolips[kagetsuki_fix]$ rake db:bootstrap | |
| This task will destroy any data in the database. Are you sure you want to | |
| continue? [y/n] y | |
| twolips_test already exists | |
| rake aborted! | |
| undefined method `set_preference' for nil:NilClass |
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
| rake spree_sample:load | |
| [DEPRECATION WARNING] Nested I18n namespace lookup under "activerecord.attributes.order" is no longer supported | |
| loading fixture /Users/phong/.rvm/gems/ruby-1.9.2-p290@rails311/gems/spree_sample-0.70.3/lib/tasks/../../db/sample/addresses.yml | |
| rake aborted! | |
| Mysql2::Error: Table 'twolips_development.addresses' doesn't exist: SHOW FIELDS FROM `addresses` |
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 @UpdateSlideshow | |
| constructor: (category) -> | |
| console.log "UpdateSlideshow call for category: #{category}" | |
| $.ajax "/get_slideshow_data.json" | |
| type: 'GET' | |
| data:{ 'category': category } | |
| success: (results) -> | |
| slideshow_items = results.html | |
| $('#gallery-list').children().remove() |
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
| rails g resource building title:string | |
| script/rails:6:in `load': no such file to load -- /Users/phong/custom_gems/spree_warehouse/spec/dummy/script/rails (LoadError) | |
| from script/rails:6:in `<main>' |
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
| phong:~/.rvm/gems/ruby-1.9.2-p290@rails311/bundler/gems$ cd spree_warehouse/ | |
| phong:~/.rvm/gems/ruby-1.9.2-p290@rails311/bundler/gems/spree_warehouse[invoke_models]$ rails g model warehouse | |
| script/rails:6:in `load': no such file to load -- /Users/phong/.rvm/gems/ruby-1.9.2-p290@rails311/bundler/gems/spree_warehouse/spec/dummy/script/rails (LoadError) | |
| from script/rails:6:in `<main>' | |
| phong:~/.rvm/gems/ruby-1.9.2-p290@rails311/bundler/gems/spree_warehouse[invoke_models]$ |
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
| rails g migration productDigitalLink url:string | |
| script/rails:5:in `load': no such file to load -- /Users/phong/custom_gems/spree_digital_content/spec/dummy/script/rails (LoadError) | |
| from script/rails:5:in `<main>' |
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
| phong:~/Sites$ rvm install ruby 1.9.3 | |
| WARN: Please note that `rvm ruby ...` is only an alias to `rvm do ruby ...`, | |
| it might work different as in earlier versions of RVM and will be shortly removed! | |
| WARN: `rvm do ruby 1.9.3` is deprecated, use `rvm all do ruby 1.9.3` or `rvm 1.9.2 do ruby 1.9.3` instead. | |
| ruby: No such file or directory -- 1.9.3 (LoadError) | |
| ruby: No such file or directory -- 1.9.3 (LoadError) | |
| ruby: No such file or directory -- 1.9.3 (LoadError) |