Ruby on Rails

None
Understanding Time, DateTime, and timezones in Rails

Understanding Time, DateTime, and timezones in Rails

My notes on using RoR for formatting times and datetimes to strings, and parsing strings to time objects.

Sep 14, 2015
Rspec - How to test a controller has included concerns

Rspec - How to test a controller has included concerns

A short Rspec snippet to verify the correct concerns have been included in a controller.

May 19, 2015
How to split Rails routes.rb into multiple smaller files

How to split Rails routes.rb into multiple smaller files

Organise your routes.rb file into smaller files, works in both Rails 3 and 4.

Apr 28, 2015
Rails 4 Conditional Page Cache for Logged In Users

Rails 4 Conditional Page Cache for Logged In Users

A technique to generate a full static HTML page for caching, based on any specified conditions.

Feb 19, 2015
Recommended Rspec style for Rails models

Recommended Rspec style for Rails models

Listing out my top 10 recommendations for how to structure and layout rspec tests for Rails models.

Feb 12, 2015
Made with JoyBird