Skip to content

Instantly share code, notes, and snippets.

@colinta
Last active December 20, 2015 10:19
Show Gist options
  • Save colinta/6114425 to your computer and use it in GitHub Desktop.
Save colinta/6114425 to your computer and use it in GitHub Desktop.
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