Skip to content

Instantly share code, notes, and snippets.

View ArionHardison's full-sized avatar
🏠
Working from home

HIM ArionHardison

🏠
Working from home
  • Hardison Co.
  • Los Angeles, CA
  • 21:27 (UTC -12:00)
View GitHub Profile
LinkedIn.configure do |config|
config.token = OauthProviders[:linkedin][:app_id]
config.secret = OauthProviders[:linkedin][:app_secret]
end
# in oauth.rb should be
LinkedIn.configure do |config|
config.token = OauthProviders[:linked_in][:app_id]
namespace :meal_plan do
desc "this job runs each morning and gives all the users their meals on their meal plans"
task :setup => :environment do
User.all.each do |u|
mp = u.meal_plans.first
mp.expires_at = DateTime.now.midnight
mp.save
mp.meal_times.each do |meal_time|
meal_time.meals.create
end
- if current_user
%div{:id => "user_notes" , :class => :user_notes}
.notes_top
= image_tag("icons/white/[email protected]" , :height => 35 , :id => "note" , :style => "margin-top: 8.5px; opacity: 1.0;")
.notes_icn
.notes
.section_title{:style => "background-color: #fc7a6c; border-left: 1px solid #fff; border-right: 1px solid #fff; border-top: 1px solid #fff; text-align: left; padding-left: 10px; font-size: 12px; padding-top: 7px; font-weight: bold; height: 30px;"}
= "Notes for: #{current_user.name}"
- if current_user.received_notes.size > 0
.the_notes
namespace :get_menu do
desc "Scraping restaurant/menu data from wwww.menupages.com"
task :menu_pages => :environment do
require 'mechanize'
agent = Mechanize.new
agent.get("http://www.menupages.com/")
# click on link dependent on type of cousine
2012-10-04T14:35:25+00:00 heroku[router]: GET setatimetotalk.com/assets/ppal-6a69e21a034df3b1cffe15d9681b2cf7.png dyno=web.1 queue=0 wait=0ms service=12ms status=200 bytes=2042
2012-10-04T14:35:29+00:00 app[postgres]: [5-1] u2vfij0o0adjok [IVORY] LOG: duration: 60.287 ms statement: SELECT "contacts".* FROM "contacts" WHERE "contacts"."phone_book_id" = 3 AND "contacts"."user_id" = 3 LIMIT 1
2012-10-04T14:35:29+00:00 app[worker.1]: 2012-10-04T14:35:29Z 2 TID-11qet4 WARN: {"retry"=>false, "queue"=>"default", "class"=>"ContactsWorker", "args"=>[3, "google"], "jid"=>"080dda372c63e65cac1565ee"}
2012-10-04T14:35:29+00:00 app[worker.1]: 2012-10-04T14:35:29Z 2 TID-11qet4 ContactsWorker MSG-11p8go INFO: fail: 5.26 sec
2012-10-04T14:35:29+00:00 app[worker.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
2012-10-04T14:35:29+00:00 app[worker.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/pos
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4" setatimetotalk.com
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds ContactsWorker MSG-18xd2s INFO: fail: 0.86 sec
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds WARN: {"retry"=>false, "queue"=>"default", "class"=>"ContactsWorker", "args"=>[1, "linkedin"], "jid"=>"35aff49ceae15a24256e6fce"}
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds WARN: undefined method `token' for nil:NilClass
2012-10-09T23:18:36+00:00 app[worker.2]: 2012-10-09T23:18:36Z 2 TID-1800ds WARN: /app/app/models/user.rb:184:in `import'
2012-10-09T23:18:36+00:00 app[worker.2]: /app/app/workers/contacts_worker.rb:6:in `perform'
2012-10-09T23:18:36+00:00 app[worker.2]: /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.3.3/lib/sidekiq/processor.rb:42:in `block (3 levels) in process'
2012-10-09T23:18:36+00:00 app[worker.2]: /app/vendor/bundle/ruby/1.9.1/
2012-10-10T16:43:37+00:00 heroku[nginx]: 127.0.0.1 - - [10/Oct/2012:16:43:37 +0000] "GET /assets/6fa1ddb1b86aa2506bcf8c27551448db.jpg HTTP/1.0" 404 1356 "https://setatimetotalk.com/feed/followers" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4" setatimetotalk.com
2012-10-10T16:43:37+00:00 heroku[router]: GET setatimetotalk.com/assets/6fa1ddb1b86aa2506bcf8c27551448db.jpg dyno=web.1 queue=0 wait=4ms service=25ms status=404 bytes=1356
2012-10-10T16:43:37+00:00 heroku[nginx]: 24.43.144.58 - - [10/Oct/2012:16:43:37 +0000] "GET /assets/6fa1ddb1b86aa2506bcf8c27551448db.jpg HTTP/1.1" 404 793 "https://setatimetotalk.com/feed/followers" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4" setatimetotalk.com
2012-10-10T16:43:39+00:00 heroku[nginx]: 24.43.144.58 - - [10/Oct/2012:16:43:39 +0000] "GET /assets/icons/gray/[email protected] HTTP/1.1" 200 2049 "https://setatimetotalk.com/feed
Tasks: TOP => saas:bootstrap
(See full trace by running task with --trace)
Arions-MacBook-Air:dietmanager hustlezen$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
Unable to read configuration file: undefined method `[]' for false:FalseClass
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
Arions-MacBook-Air:dietmanager hustlezen$ rake db:seed
Unable to read configuration file: undefined method `[]' for false:FalseClass
"seeding..."
"from SAAS..."
rake aborted!
undefined method `trial_interval' for #<SubscriptionPlan:0x007fef84267b38>
Tasks: TOP => db:seed
(See full trace by running task with --trace)
Arions-MacBook-Air:dietmanager hustlezen$ rake db:seed --trace
source 'http://railskits.com/gems/346f847f-17aa-a61c-2a1c-5b88d306fb88'
source 'http://rubygems.org'
gem 'rails', "3.2.8"
gem 'jquery-rails'
gem "pg"
gem "airbrake" # exception reporting
gem "inherited_resources"
gem "will_paginate"
gem "haml-rails"