method
days_in_month
rails latest stable - Class:
ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods
days_in_month(month, year = now.year)public
Return the number of days in the given month. If no year is specified, it will use the current year.