Module: AppKit::PathHelper

Defined in:
app/helpers/app_kit/path_helper.rb

Instance Method Summary collapse

Instance Method Details

#ak_path(path, options = {}) ⇒ Object

Convienence method for using AppKit path helpers. This method uses polymorphic_paths and prepends the AppKit route object.



5
6
7
8
9
10
11
12
# File 'app/helpers/app_kit/path_helper.rb', line 5

def ak_path(path, options={})
  if path.is_a? Array
    path.prepend app_kit
  else
    path = [app_kit, path]
  end
  polymorphic_path(path, options)
end