Module: ActionDispatch::Routing::Mapper::HttpHelpers

Defined in:
lib/calligraphy/rails/mapper.rb

Instance Method Summary collapse

Instance Method Details

#copy(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP COPY.

copy 'bacon', to: 'food#bacon'


6
7
8
9
# File 'lib/calligraphy/rails/mapper.rb', line 6

def copy(*args, &block)
  args = set_web_dav_args args
  map_method :copy, args, &block
end

#head(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP HEAD.

head 'bacon', to: 'food#bacon'


13
14
15
16
# File 'lib/calligraphy/rails/mapper.rb', line 13

def head(*args, &block)
  args = set_web_dav_args args
  map_method :head, args, &block
end

#lock(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP LOCK.

lock 'bacon', to: 'food#bacon'


20
21
22
23
# File 'lib/calligraphy/rails/mapper.rb', line 20

def lock(*args, &block)
  args = set_web_dav_args args
  map_method :lock, args, &block
end

#mkcol(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP MKCOL.

mkcol 'bacon', to: 'food#bacon'


27
28
29
30
# File 'lib/calligraphy/rails/mapper.rb', line 27

def mkcol(*args, &block)
  args = set_web_dav_args args
  map_method :mkcol, args, &block
end

#move(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP MOVE.

move 'bacon', to: 'food#bacon'


34
35
36
37
# File 'lib/calligraphy/rails/mapper.rb', line 34

def move(*args, &block)
  args = set_web_dav_args args
  map_method :move, args, &block
end

#options(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP OPTIONS.

options 'bacon', to: 'food#bacon'


41
42
43
44
# File 'lib/calligraphy/rails/mapper.rb', line 41

def options(*args, &block)
  args = set_web_dav_args args
  map_method :options, args, &block
end

#propfind(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP PROPFIND.

propfind 'bacon', to: 'food#bacon'


48
49
50
51
# File 'lib/calligraphy/rails/mapper.rb', line 48

def propfind(*args, &block)
  args = set_web_dav_args args
  map_method :propfind, args, &block
end

#proppatch(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP PROPPATCH.

proppatch 'bacon', to: 'food#bacon'


55
56
57
58
# File 'lib/calligraphy/rails/mapper.rb', line 55

def proppatch(*args, &block)
  args = set_web_dav_args args
  map_method :proppatch, args, &block
end

#unlock(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP UNLOCK.

unlock 'bacon', to: 'food#bacon'


62
63
64
65
# File 'lib/calligraphy/rails/mapper.rb', line 62

def unlock(*args, &block)
  args = set_web_dav_args args
  map_method :unlock, args, &block
end

#web_dav_delete(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP DELETE.

web_dav_delete 'broccoli', to: 'food#broccoli'


69
70
71
72
# File 'lib/calligraphy/rails/mapper.rb', line 69

def web_dav_delete(*args, &block)
  args = set_web_dav_args args
  map_method :delete, args, &block
end

#web_dav_get(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP GET.

web_dav_get 'bacon', to: 'food#bacon'


76
77
78
79
# File 'lib/calligraphy/rails/mapper.rb', line 76

def web_dav_get(*args, &block)
  args = set_web_dav_args args
  map_method :get, args, &block
end

#web_dav_put(*args, &block) ⇒ Object

Define a Calligraphy route that only recognizes HTTP PUT.

web_dav_put 'bacon', to: 'food#bacon'


83
84
85
86
# File 'lib/calligraphy/rails/mapper.rb', line 83

def web_dav_put(*args, &block)
  args = set_web_dav_args args
  map_method :put, args, &block
end