RailsCasts Pro episodes are now free!

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']}\"" }