I know that in Ruby __FILE__
refers to the current file, but what does it refer to when creating a path such as this and why is it needed as a second argument to expand_path?
set :views, File.expand_path('../../views', __FILE__)
For example, if __FILE__
refers to the current file, but there happens to be more than one file in the views folder, what exactly does __FILE__
refer to?