module Clndr::Helpers

Public Instance Methods

show_calendar(scope,*args) click to toggle source

find calendar and call .view with options

# File lib/clndr-rails/helpers.rb, line 6
def show_calendar(scope,*args)
  options = {}
  args.map{|x| options.merge! x}
  Clndr.get_calendar(scope.to_sym).view(options)
end
template_variable(variable) click to toggle source
# File lib/clndr-rails/helpers.rb, line 29
def template_variable(variable)
  "<%= #{variable} %>".html_safe
end

Private Instance Methods