When using send_file (for example for attachments of any kind), make sure your application knows the correct mime types...
If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...
Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...
I wonder if the guy that wrote BigDecimal#inspect has a tragic backstory that explains why he hates humanity.
This will give you the string that appears most often in an array: names = %w[ foo foo bar bar bar...
Best results in other decks
As you know, time zones make stuff a bit more difficult but are necessary. A time-zoned record is converted...
...custom matchers and other support code. DRY specs Goals You should know the following tools: Shared example groups Nested example groups before(:each) after(:each) let subject RSpec.configure, config.before, config.after...