I am learning Sinatra and Rom. I forked the dusty sinatra-rom project on GitHub.
I run the program with bundle exec rackup
.
I am working through the issues. This one has me stumped:
db/commands/products/create.rb
throws undefined method relation for CreateProduct:Class (NoMethodError) relation :products
Here is the start of that file:
class CreateProduct < ROM::SQL::Commands::Create[:sql]
relation :products
register_as :create
...
Both the relation
and the register_as
commands are not recognized.