Module: Ical::Helpers::UiEventHelper

Defined in:
lib/jquery/ical/helpers/ui_event_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_event_for(*args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/jquery/ical/helpers/ui_event_helper.rb', line 4

def ui_event_for(*args)
  domid = args.first
  options = args.extract_options!
  options[:url] = {} unless options[:url]
  options[:actions] = {} unless options[:actions]
  render(:file => 'shared/_ui_event_for.js.haml', :locals => {:domid => domid, :url => options[:url], :actions => options[:actions]})
end