response [200, {}, 'Hello World'] end end class HelloWorldApp def self.call(env) HelloWorld.new.response end end Rack::Server.start :app => HelloWorldApp
:assoc_skills has_many :skills, through: :assoc_skills def self.search_by(params) where(qualification_id: params[:q_id]) .order(:qualification_id) .first end end end
< Grape::API get :hello do { hello: 'world' } end end class Web < Sinatra::Base get '/' do 'Hello world.' end end use Rack::Session::Cookie run Rack::Cascade.new [API, Web]