I hereby claim:
- I am courte on github.
- I am courteney (https://keybase.io/courteney) on keybase.
- I have a public key ASDfhRVfwk_cBjt4iox5vddEitCgP9Ay9Oe5tjUJTcGe7Qo
To claim this, I am signing this object:
// AJAX REQUEST | |
$(document).ready(function() { | |
// This is called after the document has loaded in its entirety | |
// This guarantees that any elements we bind to will exist on the page | |
// when we try to bind to them | |
// See: http://docs.jquery.com/Tutorials:Introducing_$(document).ready() | |
$('form').submit( function(e) { | |
e.preventDefault(); |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
def human_readable_billable_time | |
billable_entries_by_rate_type = entries.select(&:billable?).group_by(&:rate_type) | |
human_readable_time_string = billable_entries_by_rate_type.map do |type, entries| | |
"#{entries.map(&:amount).sum} #{type == "weekly" ? 'days' : 'hours'}" | |
end.join(" + ") | |
human_readable_time_string.empty? ? "No billable time" : human_readable_time_string | |
end |
I hereby claim:
To claim this, I am signing this object: