A case for Snapshots
Snaphot tests can be very helpful when refactoring the logic behind views
Adam Dawkins
Snaphot tests can be very helpful when refactoring the logic behind views
Adam Dawkins
You can add your own support for the absent not_change matcher.
John Norris
A great way of testing a collection in RSpec without needing to care about the order.
John Norris
It can be a bit of a mystery, but they've used a simple pattern.
John Norris
A better way of using git blame to give you a more accurate result.
Adam Dawkins
Allows us to use Value Objects for things that are part of our models.
Adam Dawkins
update goes via the ActiveRecord record, while update_all writes to the column in SQL.
Adam Dawkins
link_to_if is a great way to conditionally render a link, but it can be a trap if you're not careful.
John Norris
I've got a number, and I want that number, or 0 or 100 if it overflows in either direction
John Norris
You apparently can’t combine include_blank and required on a select box, which seems odd.
John Norris
There seems to be a solveable issue with using turbo_frame_tag within view components.
Rich Butler
Using the parallel_tests gem and running the tests in parallel, the whole suite ran in 39 seconds, rather than the usual 4-5 minutes.
Will Hodgson
Rails does weird rounding in comparisons between Date and ActiveSupport::TimeWithZone classes.
Adam Dawkins
The tmp/storage folder can grow quickly, and before you know it it's taken over.
Will Hodgson
Devise trackable stores useful timestamps for when users did things, but they aren't very clear.
John Norris
The timestamp that’s passed to version in db/schema.rb is very important to get right, especially in merges.
John Norris
This might be your solution if you’re struggling with SSL issues while installing a version of Ruby with RVM
John Norris
Using a Turboframe with a src can be a trap.
John Norris
Let's go →