Skip to content

Instantly share code, notes, and snippets.

@abutler3
Created February 18, 2013 15:43
Show Gist options
  • Save abutler3/4978306 to your computer and use it in GitHub Desktop.
Save abutler3/4978306 to your computer and use it in GitHub Desktop.
Getting a Bad Authentication data error
# Failure/Error: click_button 'Search'
# Twitter::Error::BadRequest:
# Bad Authentication data
# searches_controller.rb
class SearchesController < ApplicationController
def create
redirect_to search_path(params[:twitter][:search])
end
def show
@tweets = Twitter.search("##{params[:id]}").results
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment