graphiti-api / graphiti

Stylish Graph APIs
https://www.graphiti.dev/
MIT License
960 stars 138 forks source link

Template for tutorials are broken #448

Open gorajski opened 1 year ago

gorajski commented 1 year ago

Trying to get started with Graphiti, but this template and this template suggested in the docs in several places (here, here and here) do not work because they both make use of a deprecated and now obsolete method:

~/Downloads/template:15:in `update_config!': undefined method `exists?' for File:Class (NoMethodError)
Did you mean?  exist?

The method exists? is no longer supported in Ruby and exist? should be used instead. It looks like a pull request for a fix to the second template already exists over here. Shout out to @jan-bw.

BUT! Since the documentation also mentions these two sources for the same template, it seems someone at Graphiti needs to either publish an updated copy of the first template, OR update the docs to only reference the second template.