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
manveru-ramaze-2009.05 examples/helpers/rest.rb
manveru-ramaze-2009.06.04 examples/helpers/rest.rb
manveru-ramaze-2009.06.12 examples/helpers/rest.rb
manveru-ramaze-2009.06 examples/helpers/rest.rb
manveru-ramaze-2009.07 examples/helpers/rest.rb
ptomato-ramaze-2009.02.1 examples/helpers/rest.rb
ptomato-ramaze-2009.02 examples/helpers/rest.rb
rjspotter-ramaze-2009.06.29 examples/helpers/rest.rb
rjspotter-ramaze-2009.06.31 examples/helpers/rest.rb
ramaze-2012.12.08 examples/helpers/rest.rb
ramaze-2012.12.08b examples/helpers/rest.rb
ramaze-2012.04.14 examples/helpers/rest.rb
ramaze-2012.03.07 examples/helpers/rest.rb
ramaze-2011.12.28 examples/helpers/rest.rb
ramaze-2011.10.23 examples/helpers/rest.rb
ramaze-2011.07.25 examples/helpers/rest.rb
ramaze-2011.01.30 examples/helpers/rest.rb
ramaze-2011.01 examples/helpers/rest.rb
ramaze-2010.06.18 examples/helpers/rest.rb
ramaze-2010.04.04 examples/helpers/rest.rb