Skip to content

Instantly share code, notes, and snippets.

View wnstn's full-sized avatar

Winston Hearn wnstn

View GitHub Profile
NoMethodError in SongsController#add_roles
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each
Rails.root: /Users/CS_Spare/Sites/rails/minorbeat
Application Trace | Framework Trace | Full Trace
app/controllers/songs_controller.rb:19:in `add_roles'
app/controllers/application_controller.rb:49:in `catch_exceptions'
→ tail -f log/development.log
SOLR Request (0.9ms) [ path=#<RSolr::Client:0x007fb4b96bdf58> parameters={data: <?xml version="1.0" encoding="UTF-8"?><delete><query>type:Role</query></delete>, headers: {"Content-Type"=>"text/xml"}, method: post, params: {:wt=>:ruby}, query: wt=ruby, path: update, uri: http://localhost:8982/solr/update?wt=ruby} ]
Creating scope :open. Overwriting existing method Invitation.open.
Creating scope :open_for_bids. Overwriting existing method Invitation.open_for_bids.
Creating scope :outstanding_for_user. Overwriting existing method Invitation.outstanding_for_user.
Creating scope :incoming_for_user. Overwriting existing method Invitation.incoming_for_user.
Creating scope :open. Overwriting existing method Invitation.open.
Creating scope :accepted. Overwriting existing method Invitation.accepted.
Creating scope :declined. Overwriting existing method Invitation.declined.
(0.1ms) SHOW search_path
bundle exec rake sunspot:solr:reindex
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile
rake aborted!
Connection refused - connect(2)
@wnstn
wnstn / gist:2360700
Created April 11, 2012 17:24
failing files
1) friendship request spec friendship request without message should show have feedback and create db record
Failure/Error: click_link("Invite to My Network")
Capybara::ElementNotFound:
no link with title, id or text 'Invite to My Network' found
# (eval):2:in `click_link'
# ./spec/requests/friendship_request_spec.rb:21:in `block (4 levels) in <top (required)>'
2) friendship request spec friendship request with message should show have feedback and create db record
Failure/Error: click_link("Invite to My Network")
Capybara::ElementNotFound: