I'm trying to use the evernote gem to access the Evernote API. In those instructions, it says to create a config file containing the API account details, and then load the config file as follows:

config = File.dirname(__FILE__) + "/config.yml"
user_store = Evernote::UserStore.new(user_store_url, config, "sandbox")

I created a file evernote.yml in the config folder, and put the following code in the home action in pages_controller.rb

config = File.dirname(__FILE__) + "/evernote.yml"
user_store = Evernote::UserStore.new(user_store_url, config, "sandbox")

When the code is run, I get this error on the 2nd line

Errno::ENOENT in PagesController#home
No such file or directory - /Users/ben/rails_projects/evernote_app/app/controllers/evernote.yml

How do I load the config file without getting this error?

Edit
Report