Skip to content

Walkthrough  #4

@adamakhtar

Description

@adamakhtar

Ill give this a shot but instead of using the cuba-app example Im going to use a much more simple example such as this

### hello.rb

require "cuba"

Cuba.define do
  on get do
    on "hello" do
      res.write "Hello world!"
    end
  end
end

and a corresponding config.ru

# cat config.ru
require "./hello_world"

run Cuba

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions