How to use sessions in Sinatra?

Sharad Jaiswal
Written by Sharad Jaiswal

Posted On: Aug 26, 2018

 

Related Questions

Sinatra framework interview questions

What is Sinatra?

Sinatra is web application framework for rapidly building applications in Ruby.Sinatra is a domain specific language or..

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