UPDATE: April 22, 2019 for Athena version 0.6.0
UPDATE: November 24, 2019 for Athena version 0.7.0 and Crystal 0.31.1
UPDATE: February 7, 2020 for ...
For further actions, you may consider blocking this person and/or reporting abuse
I tried following this tutorial to learn about crystal and api. I am newbie programmer btw.
Following the steps manually and cloning the github source yield the same error:
In src/blog.cr:2:1
2 | Granite::Adapters << Granite::Adapter::Pg.new({name: "my_blog", url: "postgres://dbadmin:password@localhost:5432/blog?currentSchema=blog"})
----------------
Error: undefined constant Granite::Adapters
Did you mean 'Granite::Adapter'?
can you please help what I am doing wrong?
This is a result of some breaking changes that happened in the new Granite version. See github.com/amberframework/granite/...
I'll update the guide to reflect those changes.
Thank you! Looking forward to the update
Should be good to go now, let me know if you run into any trouble.
tried the source again from the repo, new error:
Athena::Routing::Converters::Athena::Routing::Converters::RequestBody(Blog::Models::Article, Nil).new.convert val
--------------------------------------------------------------------
Error: undefined constant Athena::Routing::Converters::Athena::Routing::Converters::RequestBody
I'm still figuring out the problem just would like to let you know.
Make sure you do a
shards updateI updated some dependencies and pinned the versions so it'll always use the correct version.