module Clndr::Helpers
Public Instance Methods
next_month_link(scope,name,*args,&block)
click to toggle source
generate links for calendar
# File lib/clndr-rails/helpers.rb, line 13 def next_month_link(scope,name,*args,&block) navigate_link scope,name,'forward', *args, &block end
next_year_link(scope,name,*args,&block)
click to toggle source
# File lib/clndr-rails/helpers.rb, line 21 def next_year_link(scope,name,*args,&block) navigate_link scope,name,'nextYear', *args, &block end
previous_month_link(scope,name,*args,&block)
click to toggle source
# File lib/clndr-rails/helpers.rb, line 17 def previous_month_link(scope,name,*args,&block) navigate_link scope,name,'back', *args, &block end
previous_year_link(scope,name,*args,&block)
click to toggle source
# File lib/clndr-rails/helpers.rb, line 25 def previous_year_link(scope,name,*args,&block) navigate_link scope,name,'previousYear', *args, &block end
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