leviwilson / mohawk

MIT License
14 stars 8 forks source link

Select table row by field information #3

Closed leviwilson closed 11 years ago

leviwilson commented 11 years ago

Currently you can select a table row by the entire row's value (typically the first column's value) like so:

screen.people = 'Levi'

If a table has the following information:

First Name Last Name Age
Levi Wilson 32
John Elway 53

I would like to be able to select the 2nd row like this:

screen.select_people :last_name => 'Elway', :age => 53
leviwilson commented 11 years ago

Added in a91443c372ceb6ea995bb8f9d379165725cc8721...0a675d6f36bcea81f260e87f2a9e39397e5e86b0