app/controllers/your_data_controller.rb
#
# Shows activities grid for choosen year & month (like calendar)
#

Shows activities grid for choosen year & month (like calendar)
Shows activities grid for choosen year & month ( like calendar )
def activities_calendar
    update_calendar_user_id
    session[:year] ||= Time.now.year.to_s
    session[:month] ||= Time.now.month.to_s
    @activities = Activity.list :default_month => session[:month], :default_year => session[:year], :user_id => @calendar_user_id
  end
def activities_calendar update_calendar_user_id session [ :year ] ||= Time . now . year . to_s session [ :month ] ||= Time . now . month . to_s @activities = Activity . list :default_month => session [ :month ] , :default_year => session [ :year ] , :user_id => @calendar_user_id end
Shows activities grid for choosen year & month (like calendar)
Shows activities grid for choosen year & month ( like calendar )