Sha256: 5cf8795a5a3e67a88d40b2d66560c3fa32d29c4ec17304742b21e9891df4ea9e

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

$:.unshift File.expand_path('../lib/', File.dirname(__FILE__))
require 'florida'

class HomeController < Florida::Controller::Base
  def index
    'Hello Index!!'
  end

  def show(id)
    "This page is #{id}"
  end
end

class MyApplication < Florida::Application::Base
  routings do
    path "/home", to: HomeController
  end
end

Florida::SinatraServer.run(MyApplication)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
florida-0.0.2 test/application_test.rb