app/controllers/application.rb
def unset_calendar 
    session[:year] = nil
    session[:month] = nil
    redirect_to request.env['HTTP_REFERER'] and return
  end
#
# Sets calendar options stored in session to nils
#

Sets calendar options stored in session to nils
Sets calendar options stored in session to nils
def unset_calendar 
    session[:year] = nil
    session[:month] = nil
    redirect_to request.env['HTTP_REFERER'] and return
  end
def unset_calendar session [ :year ] = nil session [ :month ] = nil redirect_to request . env [ 'HTTP_REFERER' ] and return end
Sets calendar options stored in session to nils
Sets calendar options stored in session to nils