Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Tony Daly's Profile

GitHub User: tonydaly

Site: tonyda.ly

Comments by Tony Daly

Avatar

Put this at the top of your model which inherits from ActiveResource

ruby
@headers  = { 'Authorization' => "Token token=\"#{ENV['API_KEY']}\"" }