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.
In this article we will discuss how to add support for I18n in a Rails application, where to store translations, what localized views are, how to format dates and times, how to introduce pluralization rules and more. Continue reading…. https://phraseapp.com/blog/posts/last-rails-i18n-guide-youll-ever-need/
If you’re struggling to market yourself as a qualified candidate seeking a full-time Rails developer position, you’re about to uncover one of most effective strategies for breaking into the software development industry.
Remove the quiet_assets gem from your Rails app and upgrade sprockets-rails, which now includes a configuration option to silence the asset request logging in development. https://rossta.net/blog/quiet-assets-in-rails-5.html
Hello, I’ve updated the /football.json repo / service that offers (auto-)generated match schedules (fixtures and results) and club listings for the major football leagues e.g. English Premier League, Deutsche Bundesliga, Primera División, Italian Seria A, etc. See the 2016-17 season folder for (static) JSON examples. No API key required ;-) All data public domain. Enjoy the beautiful game. Cheers. PS: Ruby works great for generating JSON; see the json.rb script for the code.
An article bringing together all the pieces I needed to understand how everything works. It finds the middle ground between specification and rote tutorial. [more inside]
PaperTrail’s versioning and
whodunnit to track auditing is fantastic. However, it falls apart if you have multiple user classes, such as
User. Read on to keep your auditing trail clean and exact. [more inside]
Displaying large, complicated reports was taking 6+ minutes to render in Chrome. I sped it up 180x using Rails to serve cached partials to Clusterizet
In this book review, I take a look at two older, but popular books on programming in Ruby. They are both well written, and I end up comparing them to numerous other books I’ve read on software design in addition to setting them against each other.
In this article, I will explore how to implement the Bit Array data structure in Ruby, and compare its performance to the implementation in the bitarray gem, which uses a more efficient, but slightly more complex implementation. Continue reading…
active_record_doctor helps you to identify database issues before they hit production. Version 1.2.0 can index foreign keys lacking an index and detect extraneous indexes (e.g. ones that can be replaced by a multi-column index) and take unique constraints into account.
Roll your own partial caching on Rails with Sunspot and Solr. Easy to do and stupid fast. Plus, fun to try out something a little different and watch it succeed spectacularly. [more inside]
Did you know that the only thing stopping you from using protected_attributes in Rails 5 is the gem dependencies and a small patch to ActiveRecord::Core. The rails repo of protected_attributes is not longer supported and issues and PR’s are denied. I have created the continuation of that gem protected_attributes_continued which supports Rails 5! https://github.com/westonganger/protected_attributes_continued
In this article, I explore one one of the ways to model weekly recurring events in a Rails application. We will build a system where your users can set up a weekly recurring reminder (eg. “send status reports at 5pm on Fridays”). Continue reading…
Have you ever tried to setup Devise and Doorkeeper in the simplest possible way, without oauth applications etc? Here’s my new blog post about this!