# File lib/Borges/Component/DateSelector.rb, line 29 def render_content_on(r) months = (1..12).map do |month| [month, Date::MONTHNAMES[month]] end r.select(months, @month) do |i| @month = i end r.select(1..31, @day) do |i| @day = i end r.select(year_range, @year) do |i| @year = i end render_validation_error_on(r) unless date_is_valid? end