public
Created

Sinatra method with instance variable

  • Download Gist
sinatra_erb_example.rb
Ruby
1 2 3 4
get '/' do
@time = Time.new
erb :index
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.