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 build_weights | |
| twitter_weights.destroy_all | |
| Variable.all.each do |var| | |
| Scheme.all.each do |scheme| | |
| hash = tweets_of_followers.send(var.name) | |
| total = hash.values.sum | |
| hash.each do |key,val| | |
| twitter_weights.create( | |
| :scheme => scheme, | |
| :variable => var, |
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
| will_paginate(@statuses) |
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.config do |config| | |
| # Example: | |
| # Uncomment to override the default site name. | |
| # config.site_name = "Spree Demo Site" | |
| end | |
| Spree.user_class = "User" | |
| require 'spree/authentication_helpers' |
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 (3.2.8) lib/active_record/associations/join_dependency.rb:112:in `build' | |
| polyamorous (0.5.0) lib/polyamorous/join_dependency.rb:52:in `build_with_polymorphism' | |
| activerecord (3.2.8) lib/active_record/associations/join_dependency.rb:123:in `block in build' | |
| activerecord (3.2.8) lib/active_record/associations/join_dependency.rb:122:in `each' | |
| activerecord (3.2.8) lib/active_record/associations/join_dependency.rb:122:in `build' | |
| polyamorous (0.5.0) lib/polyamorous/join_dependency.rb:52:in `build_with_polymorphism' | |
| activerecord (3.2.8) lib/active_record/associations/join_dependency.rb:18:in `initialize' | |
| activerecord (3.2.8) lib/active_record/relation/finder_methods.rb:225:in `new' | |
| activerecord (3.2.8) lib/active_record/relation/finder_methods.rb:225:in `construct_relation_for_association_calculations' | |
| activerecord (3.2.8) lib/active_record/relation/calculations.rb:157:in `calculate' |
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
| Started PUT "/admin/products/apache-baseball-jersey" for 76.255.177.25 at 2012-11-02 21:20:42 +0000 | |
| Processing by Spree::Admin::ProductsController#update as HTML | |
| Parameters: {"utf8"=>"✓", "authenticity_token"=>"Rz/axJlekFfzI20D0Ai5OyfNbp974VKV7J0/Hkpyu3I=", "product"=>{"name"=>"Apache Baseball Jersey", "permalink"=>"apache-baseball-jersey", "description"=>"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat. Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam. Proin varius, lacus vitae suscipit varius, ipsum eros convallis nisi, sit amet sodales lectus pede non est. Duis augue. Suspendisse hendrerit pharetra metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio. Suspendisse vel libero. Nullam volutpat magna vel ligula. Suspe |
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::Payment.class_eval do | |
| Processing.module_eval do | |
| def process! | |
| if payment_method && payment_method.source_required? | |
| if source | |
| if !processing? | |
| if Spree::Config[:auto_capture] | |
| purchase! | |
| else | |
| if order.ready_to_process? |
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::CheckoutController#update | |
| undefined method `purchase!' for #<Spree::Payment:0x007fab4287a060> | |
| Rails.root: /Users/trappist/projects/fantree | |
| Application Trace | Framework Trace | Full Trace | |
| activemodel (3.2.8) lib/active_model/attribute_methods.rb:407:in `method_missing' | |
| activerecord (3.2.8) lib/active_record/attribute_methods.rb:149:in `method_missing' | |
| app/models/payment_decorator.rb:11:in `process!' | |
| /Users/trappist/.rvm/gems/ruby-1.9.2-p320@fantree/bundler/gems/spree-f2f98aa8dacb/core/app/models/spree/order.rb:419:in `block in process_payments!' |
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
| mac:~/projects/real-server(json_api)$ ./script/api_client post /api/login email:rocco@railsdog.com password:railsdog | |
| {"success"=>true, | |
| "auth_token"=>"TjIcHa-fsG-OM58LJeBd", | |
| "email"=>"rocco@railsdog.com"} | |
| mac:~/projects/real-server(json_api)$ ./script/api_client get /flash_sales | |
| /Users/trappist/.rvm/gems/ruby-1.9.3-p327@trr/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!': 401 Unauthorized (RestClient::Unauthorized) | |
| from /Users/trappist/.rvm/gems/ruby-1.9.3-p327@trr/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result' | |
| from /Users/trappist/.rvm/gems/ruby-1.9.3-p327@trr/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit' |
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
| { | |
| :state => "address", | |
| :auth_token => auth_token, { | |
| :order => { | |
| :ship_address_attributes => { | |
| :firstname => "Bob", | |
| :lastname => "Jones", | |
| :address1 => "123 Main Street", | |
| :address2 => "", | |
| :city => "Spreeville", |
OlderNewer