The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
This blog post explains how to collect a user’s timezone when they sign up on your site. http://nithinbekal.com/posts/rails-user-timezones/
This post describes a few simple ways to speed up your RSpec test suite. Some of these are admittedly anti-patterns, but some of them are straight-forward and easy.
Hello, Jekyll v3.2.0 is out packed full of goodies. The flagship feature is themes. Themes?! Yes. Now versioned and packed up in good old Ruby gems. The first gem-packed themes include: Minima and Garth. For more see the Awesome (Gem-Based) Jekyll Themes page. Add your theme! Cheers. PS: For more Jekyll news (and themes) follow along @statictimes
My takeaway from Sandi-Metz’s podcast with bikeshed at Railsconf 2016: http://borgs.cybrilla.com/tils/chisel-refactoring/
This article describes setting up dynamic robots.txt for your Rails app. You can use this for your staging environment or even for a multi-site app. https://solidfoundationwebdev.com/blog/posts/how-to-create-a-dynamic-robots-txt-in-rails
Rails 5 now provides a way of caching a collection of records, but it is still very problematic, other implementations I’ve seen are database specific. This project is an eclectic solution: https://github.com/efigence/cache_key_for
#max methods on
Array have been optimized in Ruby 2.4 and they are a whopping 20x faster than before! http://borgs.cybrilla.com/tils/ruby-array-min-max/
I’ve released the rack_toolkit gem yesterday and explain the motivation behind it in this article. It’s useful for writing fast tests (as long the application is fast to respond) that make real requests to the application through Puma. Supports automatic cookie based sessions, “virtual hosts”, proxied https simulation and many other features.
Take a look at my journey in fixing this bizarre flaky test: http://dev.paperlesspost.com/how-i-tracked-down-a-flaky-test/397
Curious about using SSL with Passenger in development on macOS? Phusion’s got you covered: https://blog.phusion.nl/2016/07/27/using-ssl-with-passenger-in-development-on-macos/
Why do we use Floats when they can be imprecise? Why are Fixnums special? Find the answers here: http://www.blackbytes.info/2016/07/numbers-in-ruby/
A guide showing you how to access the Campaign Monitor API with Ruby to manage your Campaign Monitor list subscribers: http://readysteadycode.com/howto-manage-campaign-monitor-lists-with-ruby
We’re publishing an open-source fieldbook on the hard lessons dev teams learn scaling Rails apps. The first chapter shows how to identify and resolve memory bloat.
For almost two years, I’ve been quietly working on a new content management system for Ruby on Rails, called PushType. PushType is designed for developers and every design decision has been made so that the process of actually building sites is made easier.
In this short video I want to demonstrate a fast TDD workflow using the Test.vim plugin by Janko Marohnić.
Using authentication and authorization, lock down your ActionCable WebSockets so that messages are only sent and received to the intended users. https://www.driftingruby.com/episodes/actioncable-part-3-securing-your-websockets
The framework of Ruby on Rails is a tool extremely powerful in the development of web applications. It has many built-in features such as object-relation mapper and intelligent routing that accelerate web applications development. http://www.railscarma.com/blog/technical-articles/basic-useful-ruby-gems-web-development/