Last active
December 20, 2015 10:19
-
-
Save colinta/6114425 to your computer and use it in GitHub Desktop.
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
layout do | |
@table_holder = subview(UIView, :table) do | |
@table = subview(UITableView, | |
frame: [[50,300],[500, 400]], | |
dataSource: self, | |
delegate: self | |
) | |
end | |
end | |
def tableView(tableView, didSelectRowAtIndexPath:indexPath) | |
tableView.deselectRowAtIndexPath(indexPath, animated: true) | |
well = Well.where(:well_id).eq("#{@wells[indexPath.row]}").first | |
puts well | |
edit_well(well) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment