Module: ActionView::Helpers::UrlHelper

Defined in:
lib/stonepath/extensions/action_view.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
11
12
# File 'lib/stonepath/extensions/action_view.rb', line 8

def link_to_stonepath_event(object, event)
  path_method = object.class.to_s.tableize.singularize + "_event_path"
  path = self.send(path_method, object, :id => event.to_s)
  link_to(event.to_s.humanize, path, :method => :post)
end