leads_to_highrise 0.3.18 → 0.3.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGZiNzBjZWJmYTIxOGNiN2Q1ZDFiZjQ3YTg0M2MxNzU5YWRjYmUxOA==
4
+ ZDJiZTEyODgwZmQ5M2E5NjhkYjdmMDE0M2Y3ZGY0M2QyNWZkNjY3ZA==
5
5
  data.tar.gz: !binary |-
6
- OGUyMzkxNTcxNTJhOTFlOGUwNTY0NDA0MzcxYzliYWI3YjU1NmRiYQ==
6
+ MWU4Mzg4Njg2MGYxODI3ODBhNzg4ZTg4MDI2NzQyMGM5YmQyMDQyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjYwYjE5YjJkYWJhNjZlM2QyN2FmMTY1MTA4ZTRiMjgzOWM1ZDZjYmU3NDkw
10
- MWZiZmRiOWJkZWEwZGM4YjgyNjg3OGY5MzAxNDExN2M0MWRkOGQ4YjdlOTFk
11
- YzYyYWM1ZDkzZDgzZmI5OThiZjU0NzQwMGM4OTI3NjI3ZTRlNDc=
9
+ MjQ4MDBlYWRhY2VhMmJkMWI3ZjM4OGFhOTk3ZDM5MzRlNTU1NDIwNWMyMDEw
10
+ MzVkMjVmNTU1ZmM5MTQzYWE4ZGU3NmEwMGJiOTFjZjgzOWNjMDc1NDNhMDI0
11
+ YjBkNzNmNjQ2ODg5YTFlYTUwZDI3MGI2MzQ1ZjhkNDQ4YTgzNDE=
12
12
  data.tar.gz: !binary |-
13
- YWMyNjljZjVhYjhkOGE5NzQ2ZmRlMjY2MzMxMWVkZDYyNjg1NWMwOTlmODI1
14
- NWExMTgyNzg2ZjkwMmIyMzEyMjI2YTE1NGNjNjkxYTI3ZDNkYzE1OGRiOWQ2
15
- ZDRlYjU5YWY5NmFiMDI2NTE5MTcxYjI4M2M5YmY1NDBhMTBlOTc=
13
+ MGNkOTY4OTY3MjdkNTQ2OWVhOGFmNDc1MWFhODRlZjgyZGFmZTJiMjk0YTc4
14
+ ZmFhNGFhMWI4NTkzODZlZjZiN2FjNmE2ZTVlYzkwODYwMDdjYWZmMmE5MjRj
15
+ ZDY2M2EwZjBkNGY1MWU5ZGQ4NjlkNzcwYzNkMWQ0Mjc0NmIyYzQ=
@@ -1,8 +1,6 @@
1
1
  require 'highrise'
2
2
  class LeadsController < ApplicationController
3
3
  before_action :set_lead, only: [:show, :edit, :update, :destroy]
4
- #self.view_paths = leads_to_highrise.paths["app/views"].existent + MyApp::Application.paths["app/views"].existent
5
- #puts self.view_paths
6
4
  config.railties_order = [LeadsToHighrise::Engine, :main_app, :all]
7
5
 
8
6
 
@@ -20,7 +18,7 @@ class LeadsController < ApplicationController
20
18
  @lead = Lead.new
21
19
  end
22
20
 
23
- # GET /leads/1/edit
21
+ # GET /leads/1/edi10
24
22
  def edit
25
23
  end
26
24
 
@@ -51,34 +49,15 @@ class LeadsController < ApplicationController
51
49
  end
52
50
 
53
51
  def to_highrise
54
- if current_user.highrise_site != nil or current_user.highrise_user != nil
52
+ if current_user.highrise_site or current_user.highrise_user
55
53
  @lead = Lead.find(params[:id])
56
- Highrise::Base.site = current_user.highrise_site
57
- Highrise::Base.user = current_user.highrise_user
58
- Highrise::Base.format = :xml
59
- p = Highrise::Person.new( first_name: @lead[:name],
60
- last_name: @lead[:last_name],
61
- title: @lead[:job_title],
62
- company_name: @lead[:company],
63
- contact_data: { email_addresses: [ { address: @lead[:emial], location: 'Work'} ],
64
- phone: @lead[:phone],
65
- website: @lead[:website] })
66
-
67
- #p = Highrise::Person.new(first_name: @lead[:name], contact_data: { email_addresses: [ { address: 'test@example.com', location: 'Work' } ] })
68
-
69
- #p.save
70
- if p.save
71
- redirect_to root_path, notice: 'this contact was sent to the highrise successfully'
72
- else
73
- redirect_to root_path, notice: 'Error.'
74
- end
54
+ send_to_highrise(@lead)
75
55
  else
76
56
  redirect_to root_path, notice: 'Please add your highrise configs.'
77
57
  end
78
58
  end
79
59
 
80
60
  private
81
-
82
61
  # Use callbacks to share common setup or constraints between actions.
83
62
  def set_lead
84
63
  @lead = Lead.find(params[:id])
@@ -88,4 +67,23 @@ class LeadsController < ApplicationController
88
67
  def lead_params
89
68
  params.require(:lead).permit(:name, :last_name, :email, :company, :job_title, :phone, :website)
90
69
  end
70
+
71
+ def send_to_highrise(lead)
72
+ Highrise::Base.site = current_user.highrise_site
73
+ Highrise::Base.user = current_user.highrise_user
74
+ Highrise::Base.format = :xml
75
+ p = Highrise::Person.new( first_name: lead[:name],
76
+ last_name: lead[:last_name],
77
+ title: lead[:job_title],
78
+ company_name: lead[:company],
79
+ contact_data: { email_addresses: [ { address: lead[:emial], location: 'Work'} ],
80
+ phone: lead[:phone],
81
+ website: lead[:website] })
82
+
83
+ if p.save
84
+ redirect_to root_path, notice: 'this contact was sent to the highrise successfully'
85
+ else
86
+ redirect_to root_path, notice: 'Error.'
87
+ end
88
+ end
91
89
  end
@@ -1,3 +1,3 @@
1
1
  module LeadsToHighrise
2
- VERSION = "0.3.18"
2
+ VERSION = "0.3.19"
3
3
  end
@@ -3802,3 +3802,700 @@ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 05:23:40
3802
3802
 
3803
3803
 
3804
3804
  Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 05:23:40 +0000
3805
+
3806
+
3807
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:43:48 +0000
3808
+ ActiveRecord::SchemaMigration Load (6.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3809
+
3810
+ SyntaxError (/vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:60: formal argument cannot be an instance variable
3811
+ def send_to_highrise(@lead)
3812
+ ^):
3813
+ activesupport (4.1.0) lib/active_support/dependencies.rb:443:in `load'
3814
+ activesupport (4.1.0) lib/active_support/dependencies.rb:443:in `block in load_file'
3815
+ activesupport (4.1.0) lib/active_support/dependencies.rb:633:in `new_constants_in'
3816
+ activesupport (4.1.0) lib/active_support/dependencies.rb:442:in `load_file'
3817
+ activesupport (4.1.0) lib/active_support/dependencies.rb:342:in `require_or_load'
3818
+ activesupport (4.1.0) lib/active_support/dependencies.rb:480:in `load_missing_constant'
3819
+ activesupport (4.1.0) lib/active_support/dependencies.rb:180:in `const_missing'
3820
+ activesupport (4.1.0) lib/active_support/inflector/methods.rb:238:in `const_get'
3821
+ activesupport (4.1.0) lib/active_support/inflector/methods.rb:238:in `block in constantize'
3822
+ activesupport (4.1.0) lib/active_support/inflector/methods.rb:236:in `each'
3823
+ activesupport (4.1.0) lib/active_support/inflector/methods.rb:236:in `inject'
3824
+ activesupport (4.1.0) lib/active_support/inflector/methods.rb:236:in `constantize'
3825
+ activesupport (4.1.0) lib/active_support/dependencies.rb:552:in `get'
3826
+ activesupport (4.1.0) lib/active_support/dependencies.rb:583:in `constantize'
3827
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
3828
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:66:in `controller'
3829
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:44:in `call'
3830
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
3831
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
3832
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
3833
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
3834
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
3835
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
3836
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
3837
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
3838
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
3839
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
3840
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
3841
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
3842
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
3843
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
3844
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
3845
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
3846
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
3847
+ activerecord (4.1.0) lib/active_record/migration.rb:380:in `call'
3848
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
3849
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
3850
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
3851
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
3852
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
3853
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
3854
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
3855
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
3856
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
3857
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
3858
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
3859
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
3860
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
3861
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
3862
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
3863
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
3864
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
3865
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
3866
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
3867
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
3868
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
3869
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
3870
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
3871
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
3872
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
3873
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
3874
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
3875
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
3876
+
3877
+
3878
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.6ms)
3879
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms)
3880
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (116.3ms)
3881
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (277.5ms)
3882
+
3883
+
3884
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:44:06 +0000
3885
+ Processing by LeadsController#index as HTML
3886
+ Lead Load (14.9ms) SELECT "leads".* FROM "leads" LIMIT 10 OFFSET 0
3887
+ User Load (15.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3888
+ Rendered leads/index.html.erb within layouts/application (369.4ms)
3889
+ Completed 200 OK in 1043ms (Views: 866.3ms | ActiveRecord: 44.0ms)
3890
+
3891
+
3892
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 17:44:10 +0000
3893
+
3894
+
3895
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 17:44:10 +0000
3896
+
3897
+
3898
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:44:28 +0000
3899
+ Processing by LeadsController#index as HTML
3900
+ Lead Load (17.0ms) SELECT "leads".* FROM "leads" LIMIT 3 OFFSET 0
3901
+  (6.9ms) SELECT COUNT(*) FROM "leads"
3902
+ User Load (7.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3903
+ Rendered leads/index.html.erb within layouts/application (287.8ms)
3904
+ Completed 200 OK in 942ms (Views: 700.5ms | ActiveRecord: 54.3ms)
3905
+
3906
+
3907
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 17:44:30 +0000
3908
+
3909
+
3910
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 17:44:31 +0000
3911
+
3912
+
3913
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:44:57 +0000
3914
+ Processing by LeadsController#index as HTML
3915
+ Lead Load (41.1ms) SELECT "leads".* FROM "leads" LIMIT 10 OFFSET 0
3916
+ User Load (5.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3917
+ Rendered leads/index.html.erb within layouts/application (229.7ms)
3918
+ Completed 200 OK in 1078ms (Views: 782.3ms | ActiveRecord: 64.5ms)
3919
+
3920
+
3921
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 17:45:00 +0000
3922
+
3923
+
3924
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 17:45:00 +0000
3925
+
3926
+
3927
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 17:46:02 +0000
3928
+ Processing by LeadsController#to_highrise as HTML
3929
+ Parameters: {"id"=>"1"}
3930
+ User Load (7.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
3931
+ Completed 500 Internal Server Error in 24ms
3932
+
3933
+ NoMethodError (undefined method `[]' for nil:NilClass):
3934
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:64:in `send_to_highrise'
3935
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:53:in `to_highrise'
3936
+ actionpack (4.1.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
3937
+ actionpack (4.1.0) lib/abstract_controller/base.rb:189:in `process_action'
3938
+ actionpack (4.1.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
3939
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
3940
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
3941
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
3942
+ activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
3943
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
3944
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
3945
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
3946
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
3947
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
3948
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
3949
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
3950
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
3951
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
3952
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
3953
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
3954
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
3955
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
3956
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
3957
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
3958
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
3959
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
3960
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
3961
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
3962
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
3963
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
3964
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
3965
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
3966
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
3967
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
3968
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
3969
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
3970
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
3971
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
3972
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
3973
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
3974
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
3975
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
3976
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
3977
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
3978
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
3979
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
3980
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
3981
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
3982
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
3983
+ activerecord (4.1.0) lib/active_record/migration.rb:380:in `call'
3984
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
3985
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
3986
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
3987
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
3988
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
3989
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
3990
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
3991
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
3992
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
3993
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
3994
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
3995
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
3996
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
3997
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
3998
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
3999
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4000
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
4001
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4002
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4003
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
4004
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
4005
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
4006
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4007
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4008
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4009
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
4010
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
4011
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
4012
+
4013
+
4014
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.1ms)
4015
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.1ms)
4016
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (4.4ms)
4017
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (63.0ms)
4018
+
4019
+
4020
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 17:46:24 +0000
4021
+ Processing by LeadsController#to_highrise as HTML
4022
+ Parameters: {"id"=>"1"}
4023
+ User Load (11.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4024
+ Completed 500 Internal Server Error in 74ms
4025
+
4026
+ NoMethodError (undefined method `[]' for nil:NilClass):
4027
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:65:in `send_to_highrise'
4028
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:53:in `to_highrise'
4029
+ actionpack (4.1.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
4030
+ actionpack (4.1.0) lib/abstract_controller/base.rb:189:in `process_action'
4031
+ actionpack (4.1.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
4032
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
4033
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4034
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4035
+ activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
4036
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
4037
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
4038
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
4039
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
4040
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
4041
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
4042
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
4043
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
4044
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
4045
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
4046
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
4047
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
4048
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
4049
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
4050
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
4051
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
4052
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
4053
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
4054
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
4055
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
4056
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
4057
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
4058
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
4059
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
4060
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
4061
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
4062
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
4063
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
4064
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
4065
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
4066
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
4067
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
4068
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
4069
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
4070
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
4071
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
4072
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
4073
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
4074
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
4075
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
4076
+ activerecord (4.1.0) lib/active_record/migration.rb:380:in `call'
4077
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
4078
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
4079
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4080
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
4081
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
4082
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
4083
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4084
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
4085
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
4086
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
4087
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
4088
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
4089
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
4090
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4091
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4092
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4093
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
4094
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4095
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4096
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
4097
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
4098
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
4099
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4100
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4101
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4102
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
4103
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
4104
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
4105
+
4106
+
4107
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.2ms)
4108
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
4109
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.7ms)
4110
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (47.0ms)
4111
+
4112
+
4113
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 17:46:59 +0000
4114
+ Processing by LeadsController#to_highrise as HTML
4115
+ Parameters: {"id"=>"1"}
4116
+ User Load (5.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4117
+ Completed 500 Internal Server Error in 85ms
4118
+
4119
+ NoMethodError (undefined method `[]' for nil:NilClass):
4120
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:65:in `send_to_highrise'
4121
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:53:in `to_highrise'
4122
+ actionpack (4.1.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
4123
+ actionpack (4.1.0) lib/abstract_controller/base.rb:189:in `process_action'
4124
+ actionpack (4.1.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
4125
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
4126
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4127
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4128
+ activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
4129
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
4130
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
4131
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
4132
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
4133
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
4134
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
4135
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
4136
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
4137
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
4138
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
4139
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
4140
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
4141
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
4142
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
4143
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
4144
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
4145
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
4146
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
4147
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
4148
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
4149
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
4150
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
4151
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
4152
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
4153
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
4154
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
4155
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
4156
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
4157
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
4158
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
4159
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
4160
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
4161
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
4162
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
4163
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
4164
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
4165
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
4166
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
4167
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
4168
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
4169
+ activerecord (4.1.0) lib/active_record/migration.rb:380:in `call'
4170
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
4171
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
4172
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4173
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
4174
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
4175
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
4176
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4177
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
4178
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
4179
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
4180
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
4181
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
4182
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
4183
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4184
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4185
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4186
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
4187
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4188
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4189
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
4190
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
4191
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
4192
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4193
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4194
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4195
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
4196
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
4197
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
4198
+
4199
+
4200
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.6ms)
4201
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms)
4202
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.3ms)
4203
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (46.3ms)
4204
+
4205
+
4206
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 17:48:23 +0000
4207
+ Processing by LeadsController#to_highrise as HTML
4208
+ Parameters: {"id"=>"1"}
4209
+ User Load (14.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4210
+ Lead Load (8.2ms) SELECT "leads".* FROM "leads" WHERE "leads"."id" = ? LIMIT 1 [["id", 1]]
4211
+ Completed 500 Internal Server Error in 228ms
4212
+
4213
+ NoMethodError (undefined method `path' for nil:NilClass):
4214
+ activeresource (4.0.0) lib/active_resource/base.rb:642:in `prefix'
4215
+ activeresource (4.0.0) lib/active_resource/base.rb:652:in `prefix_source'
4216
+ activeresource (4.0.0) lib/active_resource/base.rb:1019:in `prefix_parameters'
4217
+ activeresource (4.0.0) lib/active_resource/base.rb:1034:in `block in split_options'
4218
+ activeresource (4.0.0) lib/active_resource/base.rb:1032:in `each'
4219
+ activeresource (4.0.0) lib/active_resource/base.rb:1032:in `split_options'
4220
+ activeresource (4.0.0) lib/active_resource/base.rb:1531:in `split_options'
4221
+ activeresource (4.0.0) lib/active_resource/base.rb:1328:in `load'
4222
+ activeresource (4.0.0) lib/active_resource/base.rb:1074:in `initialize'
4223
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:66:in `new'
4224
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:66:in `send_to_highrise'
4225
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:54:in `to_highrise'
4226
+ actionpack (4.1.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
4227
+ actionpack (4.1.0) lib/abstract_controller/base.rb:189:in `process_action'
4228
+ actionpack (4.1.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
4229
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
4230
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4231
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4232
+ activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
4233
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
4234
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
4235
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
4236
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
4237
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
4238
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
4239
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
4240
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
4241
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
4242
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
4243
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
4244
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
4245
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
4246
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
4247
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
4248
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
4249
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
4250
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
4251
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
4252
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
4253
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
4254
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
4255
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
4256
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
4257
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
4258
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
4259
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
4260
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
4261
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
4262
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
4263
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
4264
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
4265
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
4266
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
4267
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
4268
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
4269
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
4270
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
4271
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
4272
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
4273
+ activerecord (4.1.0) lib/active_record/migration.rb:380:in `call'
4274
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
4275
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
4276
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4277
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
4278
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
4279
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
4280
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4281
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
4282
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
4283
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
4284
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
4285
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
4286
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
4287
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4288
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4289
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4290
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
4291
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4292
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4293
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
4294
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
4295
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
4296
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4297
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4298
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4299
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
4300
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
4301
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
4302
+
4303
+
4304
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
4305
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
4306
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (4.8ms)
4307
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (47.1ms)
4308
+ User Load (12.6ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1
4309
+  (0.6ms) begin transaction
4310
+ SQL (14.4ms) UPDATE "users" SET "highrise_site" = ?, "highrise_user" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["highrise_site", "https://brunotripoloni.highrisehq.com"], ["highrise_user", "ac3c0c23c6333683a221dc75b70be717"], ["updated_at", "2014-04-21 17:52:53.525957"]]
4311
+  (14.2ms) commit transaction
4312
+
4313
+
4314
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 17:55:58 +0000
4315
+ ActiveRecord::SchemaMigration Load (8.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4316
+ Processing by LeadsController#to_highrise as HTML
4317
+ Parameters: {"id"=>"1"}
4318
+ User Load (6.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4319
+ Redirected to http://localhost:3000/
4320
+ Completed 302 Found in 340ms (ActiveRecord: 12.8ms)
4321
+
4322
+
4323
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:56:01 +0000
4324
+ Processing by LeadsController#index as HTML
4325
+ Lead Load (9.2ms) SELECT "leads".* FROM "leads" LIMIT 10 OFFSET 0
4326
+ User Load (6.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4327
+ Rendered leads/index.html.erb within layouts/application (127.1ms)
4328
+ Completed 200 OK in 905ms (Views: 759.0ms | ActiveRecord: 24.5ms)
4329
+
4330
+
4331
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 17:56:02 +0000
4332
+
4333
+
4334
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 17:56:02 +0000
4335
+
4336
+
4337
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:56:36 +0000
4338
+ Processing by LeadsController#index as HTML
4339
+ Lead Load (12.7ms) SELECT "leads".* FROM "leads" LIMIT 10 OFFSET 0
4340
+ User Load (5.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4341
+ Rendered leads/index.html.erb within layouts/application (182.3ms)
4342
+ Completed 200 OK in 654ms (Views: 495.5ms | ActiveRecord: 41.9ms)
4343
+
4344
+
4345
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 17:56:38 +0000
4346
+
4347
+
4348
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 17:56:38 +0000
4349
+
4350
+
4351
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 17:57:34 +0000
4352
+ Processing by LeadsController#to_highrise as HTML
4353
+ Parameters: {"id"=>"1"}
4354
+ User Load (11.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4355
+ Lead Load (4.0ms) SELECT "leads".* FROM "leads" WHERE "leads"."id" = ? LIMIT 1 [["id", 1]]
4356
+ Redirected to http://localhost:3000/
4357
+ Completed 302 Found in 15166ms (ActiveRecord: 15.6ms)
4358
+
4359
+
4360
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:57:49 +0000
4361
+ Processing by LeadsController#index as HTML
4362
+ Lead Load (6.5ms) SELECT "leads".* FROM "leads" LIMIT 10 OFFSET 0
4363
+ User Load (7.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4364
+ Rendered leads/index.html.erb within layouts/application (35.1ms)
4365
+ Completed 200 OK in 394ms (Views: 378.7ms | ActiveRecord: 14.1ms)
4366
+
4367
+
4368
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 17:57:50 +0000
4369
+
4370
+
4371
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 17:57:50 +0000
4372
+
4373
+
4374
+ Started GET "/" for 10.0.2.2 at 2014-04-21 17:59:33 +0000
4375
+ Processing by LeadsController#index as HTML
4376
+ Lead Load (10.6ms) SELECT "leads".* FROM "leads" LIMIT 10 OFFSET 0
4377
+ User Load (6.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4378
+ Rendered leads/index.html.erb within layouts/application (109.9ms)
4379
+ Completed 200 OK in 471ms (Views: 354.0ms | ActiveRecord: 28.7ms)
4380
+
4381
+
4382
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 17:59:34 +0000
4383
+
4384
+
4385
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 17:59:34 +0000
4386
+
4387
+
4388
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 17:59:37 +0000
4389
+ Processing by LeadsController#to_highrise as HTML
4390
+ Parameters: {"id"=>"1"}
4391
+ User Load (5.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4392
+ Completed 500 Internal Server Error in 15ms
4393
+
4394
+ NoMethodError (undefined method `[]' for nil:NilClass):
4395
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:76:in `send_to_highrise'
4396
+ /vagrant/engine/leads_to_highrise/app/controllers/leads_controller.rb:54:in `to_highrise'
4397
+ actionpack (4.1.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
4398
+ actionpack (4.1.0) lib/abstract_controller/base.rb:189:in `process_action'
4399
+ actionpack (4.1.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
4400
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
4401
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4402
+ activesupport (4.1.0) lib/active_support/callbacks.rb:113:in `call'
4403
+ activesupport (4.1.0) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
4404
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `call'
4405
+ activesupport (4.1.0) lib/active_support/callbacks.rb:229:in `block in halting'
4406
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `call'
4407
+ activesupport (4.1.0) lib/active_support/callbacks.rb:166:in `block in halting'
4408
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `call'
4409
+ activesupport (4.1.0) lib/active_support/callbacks.rb:86:in `run_callbacks'
4410
+ actionpack (4.1.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
4411
+ actionpack (4.1.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
4412
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
4413
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `block in instrument'
4414
+ activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
4415
+ activesupport (4.1.0) lib/active_support/notifications.rb:159:in `instrument'
4416
+ actionpack (4.1.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
4417
+ actionpack (4.1.0) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
4418
+ activerecord (4.1.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
4419
+ actionpack (4.1.0) lib/abstract_controller/base.rb:136:in `process'
4420
+ actionview (4.1.0) lib/action_view/rendering.rb:30:in `process'
4421
+ actionpack (4.1.0) lib/action_controller/metal.rb:195:in `dispatch'
4422
+ actionpack (4.1.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
4423
+ actionpack (4.1.0) lib/action_controller/metal.rb:231:in `block in action'
4424
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
4425
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
4426
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
4427
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
4428
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `each'
4429
+ actionpack (4.1.0) lib/action_dispatch/journey/router.rb:59:in `call'
4430
+ actionpack (4.1.0) lib/action_dispatch/routing/route_set.rb:676:in `call'
4431
+ warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
4432
+ warden (1.2.3) lib/warden/manager.rb:34:in `catch'
4433
+ warden (1.2.3) lib/warden/manager.rb:34:in `call'
4434
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
4435
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
4436
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
4437
+ actionpack (4.1.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
4438
+ actionpack (4.1.0) lib/action_dispatch/middleware/flash.rb:254:in `call'
4439
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
4440
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
4441
+ actionpack (4.1.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'
4442
+ activerecord (4.1.0) lib/active_record/query_cache.rb:36:in `call'
4443
+ activerecord (4.1.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
4444
+ activerecord (4.1.0) lib/active_record/migration.rb:380:in `call'
4445
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
4446
+ activesupport (4.1.0) lib/active_support/callbacks.rb:82:in `run_callbacks'
4447
+ actionpack (4.1.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4448
+ actionpack (4.1.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'
4449
+ actionpack (4.1.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
4450
+ actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
4451
+ actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4452
+ railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
4453
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
4454
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
4455
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
4456
+ activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
4457
+ railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
4458
+ actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4459
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
4460
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
4461
+ activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
4462
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4463
+ actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
4464
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
4465
+ railties (4.1.0) lib/rails/engine.rb:514:in `call'
4466
+ railties (4.1.0) lib/rails/application.rb:144:in `call'
4467
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
4468
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
4469
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
4470
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
4471
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
4472
+ /home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
4473
+
4474
+
4475
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.7ms)
4476
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
4477
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.2ms)
4478
+ Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (51.2ms)
4479
+
4480
+
4481
+ Started GET "/leads/1/to_highrise" for 10.0.2.2 at 2014-04-21 18:00:22 +0000
4482
+ Processing by LeadsController#to_highrise as HTML
4483
+ Parameters: {"id"=>"1"}
4484
+ User Load (5.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4485
+ Lead Load (6.5ms) SELECT "leads".* FROM "leads" WHERE "leads"."id" = ? LIMIT 1 [["id", 1]]
4486
+ Redirected to http://localhost:3000/
4487
+ Completed 302 Found in 3506ms (ActiveRecord: 35.2ms)
4488
+
4489
+
4490
+ Started GET "/" for 10.0.2.2 at 2014-04-21 18:00:27 +0000
4491
+ Processing by LeadsController#index as HTML
4492
+ Lead Load (8.3ms) SELECT "leads".* FROM "leads" LIMIT 10 OFFSET 0
4493
+ User Load (9.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
4494
+ Rendered leads/index.html.erb within layouts/application (124.8ms)
4495
+ Completed 200 OK in 492ms (Views: 473.1ms | ActiveRecord: 17.8ms)
4496
+
4497
+
4498
+ Started GET "/assets/application.css?body=1" for 10.0.2.2 at 2014-04-21 18:00:28 +0000
4499
+
4500
+
4501
+ Started GET "/assets/application.js?body=1" for 10.0.2.2 at 2014-04-21 18:00:28 +0000
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leads_to_highrise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Tripoloni