Sha256: 3673749eedfa728b9d0dadedfec6934eed6168920a52273b6174b15f0d1be3c3

Contents?: true

Size: 312 Bytes

Versions: 55

Compression:

Stored size: 312 Bytes

Contents

require 'rubygems'
require 'ramaze'

class MainController < Ramaze::Controller
  helper :rest

  on_get
  def index
    'Hello, World'
  end

  on_post
  def create
    p request.params
  end

  on_delete
  def delete
    'Deleted stuff'
  end

  on_put
  def insert
    'Inserted stuff'
  end
end

Ramaze.start

Version data entries

55 entries across 55 versions & 6 rubygems

Version Path
ramaze-2023.01.06 examples/helpers/rest.rb
Pistos-ramaze-2008.09 examples/helpers/rest.rb
Pistos-ramaze-2008.12 examples/helpers/rest.rb
Pistos-ramaze-2009.01 examples/helpers/rest.rb
Pistos-ramaze-2009.02 examples/helpers/rest.rb
Pistos-ramaze-2009.04.08 examples/helpers/rest.rb
Pistos-ramaze-2009.06.12 examples/helpers/rest.rb
clivecrous-ramaze-0.3.9.5 examples/rest.rb
manveru-ramaze-2008.07 examples/helpers/rest.rb
manveru-ramaze-2008.08 examples/helpers/rest.rb
manveru-ramaze-2008.09 examples/helpers/rest.rb
manveru-ramaze-2008.10 examples/helpers/rest.rb
manveru-ramaze-2008.12 examples/helpers/rest.rb
manveru-ramaze-2009.01 examples/helpers/rest.rb
manveru-ramaze-2009.04.01 examples/helpers/rest.rb
manveru-ramaze-2009.04.08 examples/helpers/rest.rb
manveru-ramaze-2009.04.18 examples/helpers/rest.rb
manveru-ramaze-2009.04.22 examples/helpers/rest.rb
manveru-ramaze-2009.04 examples/helpers/rest.rb
manveru-ramaze-2009.05.08 examples/helpers/rest.rb