This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rake task for finding unused images in rails app. | |
It requires 'ack' http://betterthangrep.com/ | |
MacOS: brew install ack | |
Linux: apt-get install ack-grep | |
Before lunch a task put .ackrc to home directory like ~/.ackrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'xpath' | |
module Features | |
module SelectDatesAndTimes | |
# select_date DateTime.now, from: 'label_name' | |
def select_date (date, options = {}) | |
date = Date.parse(date.to_s) | |
# lookup id prefix by label |