What is Sinatra?

Sharad Jaiswal
Written by Sharad Jaiswal

Posted On: Aug 26, 2018

 

Related Questions

Sinatra framework interview questions

How to use sessions in Sinatra?

By default, Sessions are disabled in Sinatra.You need to enable them and then use the session hash from routes and view..

Sinatra framework interview questions

How do you flash a session message in Sinatra ?

Rack:: Flash is used to flash a message in Sinatra.Example Usage :require 'sinatra/base' require 'rack-flash'class My..

Sinatra framework interview questions

How do I get the “route” for the current page?

The request object probably has what you’re looking for:get '/hello-world' do request.path_info # => '/hello-w..

Ask a Question