Sha256: 6f66c5fcb76800208324d9ecef2fd2f3491ef797b8ba5447ea285316ec48919f
Contents?: true
Size: 331 Bytes
Versions: 11
Compression:
Stored size: 331 Bytes
Contents
module SelectDateSpecHelper def select_date(date, options = {}) field = options[:from] base_id = find(:xpath, ".//label[contains(.,'#{field}')]")[:for] year, month, day = date.split(",") select year, from: "#{base_id}_1i" select month, from: "#{base_id}_2i" select day, from: "#{base_id}_3i" end end
Version data entries
11 entries across 11 versions & 1 rubygems