lib/awesome_email/layouts.rb
# check if a the given view exists within the app/views folder
check if a the given view exists within the app/views folder
check if a the given view exists within the app / views folder
def template_exists?(file_name)
        full_path = File.join(RAILS_ROOT, '**', 'views', file_name)
        files = Dir.glob(full_path)
        !files.blank?
      end
def template_exists? ( file_name ) full_path = File . join ( RAILS_ROOT , '**' , 'views' , file_name ) files = Dir . glob ( full_path ) ! files . blank? end
check if a the given view exists within the app/views folder
check if a the given view exists within the app / views folder
file_name