Sinatra error: NoMethodError: undefined method `get' for #<Class:0x007fa70444aef0>
You've inherited from ActiveRecord::Base
but that's for database models. Put your routes in a class that inherits from Sinatra::Base
and make sure to require 'sinatra/base'
too.