Module: I18nRouter

Defined in:
lib/i18n-router.rb,
lib/i18n-router/router.rb,
lib/i18n-router/version.rb

Constant Summary collapse

VERSION =
"0.0.3"

Instance Method Summary collapse

Instance Method Details

#i18n_delete(paths = {}, opts = {}, &code) ⇒ Object



11
12
13
# File 'lib/i18n-router/router.rb', line 11

def i18n_delete paths={}, opts={}, &code
  i18n_route 'delete', paths, opts, &code
end

#i18n_get(paths = {}, opts = {}, &code) ⇒ Object



3
4
5
# File 'lib/i18n-router/router.rb', line 3

def i18n_get paths={}, opts={}, &code
  i18n_route 'get', paths, opts, &code
end

#i18n_post(paths = {}, opts = {}, &code) ⇒ Object



7
8
9
# File 'lib/i18n-router/router.rb', line 7

def i18n_post paths={}, opts={}, &code
  i18n_route 'post', paths, opts, &code
end