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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
JRuby Mahout Integration
Integrating jruby with machine learning collection of libraries mahout. Using maven to access java libs from the mahout project with help of jbundler. JRuby Mahout Integration
Rails Radio Button Mystery
Adding radio buttons to a rails form always lets me look up the syntax again. I printed it down for everyone that it will not be forgotten: Rails radio button mystery
Data aggregation/charting framework for Rails
A new gem with a declarative DSL that makes reporting on Rails models a bit more pleasant. Fairly fully-featured but more of a framework-framework than a frontend one.
How To Remove A Default Scope For An Association In Rails
This tip describes bypassing a default scope for an association in Rails.
OmniAuth OAuth2 Strategy for Pushbullet
Somehow, no one has released an OmniAuth strategy for Pushbullet up to this point. This gem fixes that.
Slide Show (S9) v3.0 - Write Talks / Presentations in Text w / Markdown - Many Themes
Hello, Starting with Slide Show (S9) v3.0 all slide show/presentation templates are now Jekyll-compatible and use Liquid. Why? The idea is that your slide show template pack is “just” a Jekyll site and, thus, you can use your Liquid template skills for creating or changing slide show / presentation templates and if you use GitHub you can use the free built-in GitHub pages service for live previews, testing, and more. For some first example see: Read more
I18n for data in your models
With JSONB type in Postgres 9.4. Idea and a gem
An introduction to Memoization
Memoization is a technique you can use in Ruby to cache results from calculations to speed up your code.
Database driven scheduling with Clockwork and ActiveJob
An introductory tutorial on making event scheduling management more accessible and configurable for administrators through database driven admin interfaces in Rails.
Awesome Jekyll Updated - More Themes, Conferences, Screencasts, Articles, etc.
Hello, I’ve updated the Awesome Jekyll page that collects all things about the static (web)site builder in Ruby (used by GitHub pages and others). What’s News? Added Jekyll conferences, screencasts, showcases, news (e.g. Static Times, Jekyll Weekly), applications (e.g. JKAN), many more theme collections (e.g. Henry, Poole, Made Mistakes, Zen of Book Design, etc.) and many more articles. As always. Anything missing? Contributions welcome. Cheers.
Write your first Rubygems plugin
I wrote a short tutorial on how to get started with writing a small plugin for Rubygems, with a bit of a dive into Rubygems’ source code. Check it out here.
War is Over, or is it? A New Dawn for Microsoft
Yesterday was a pretty remarkable and historical day for Microsoft, I even think it might be an Era dividing moment, at least from my personal perspective. Since then I was trying to figure out a way to register this moment for posterity. Read more
Free Video Series On Getting Started with RubyMotion
I’ve created a series of raw, barely edited, YouTube videos to help others get started with creating iOS applications with RubyMotion. Enjoy! Read more
Essential Object Oriented Design in Ruby Book Released
Check it out on Kindle store : Essential Object Oriented Design in Ruby
New releases of dry-types and dry-validation
Check out the official announcement.
Speeding up RSpec and Cucumber with PostgreSQL fsync flag and parallel execution
After we’ve added RSpec and Cucumber to our CI build process, it got really, really slow. Due to the application character, after each scenario (for Cucumber) we truncate and restore the whole database. 45 minutes for a single build is definitely not what we aimed to get. See how we got it down by 75%.
Database-agnostic case-insensitive equality and full text search
Different relational databases treat text search very differently. The new DbTextSearch gem provides a unified interface on top of ActiveRecord for SQLite, MySQL, and PostgreSQL to do: Read more
Multiple Joins and Ambiguous Column References
Have you ever ran into an ambiguous column reference when doing multiple joins to the same table? See how I circumvented that issue.
Efficient Rails DevOps (ebook)
An ebook I wrote about how to efficiently provision your Rails stack, deploy your applications and manage your production environment with Ansible. Visitors of RubyFlow may use the discount code rbflw to get $5 off when buying the book on its website.
Pattern matching [:ok, result]
I use a lot of [:ok, result]-like return values to avoid using exception as flow control. It’s not fun to pattern match on this in Ruby, so I write a small gem that handles that problem gracefully: Read more
SecretGarden = Vault + Secretfile for 12-Factor-Apps
You want to secure your secrets in a central store like Vault, and make it easy to configure which secrets your application has access to. Even better is a way to be able to configure your app via the environment, and fall back to a secret storage service like Vault! Read more
Wait, where does what?
No matter how much I know there are always bits that slip by. I’ve used Rails for years. Which means I’ve queried models using where for years. Even so, I recently saw someones code and thought, “that can’t work.” I was wrong. Read more
Free Light-Weight Open Data Catalog (CKAN Clone) w/ Jekyll Incl. Admin Pages w/ Auth
Hello, Via @statictimes - a static site (Jekyll, Middleman & friends) news channel: Tim Wisniewsk (from Philadelphia) has put together a free open source CKAN clone for light-weight open data catalog sites. Add/edit datasets in the _datasets collection/directory or use the user-friendly (admin) editing pages (requires login e.g. authentication). Cheers.
PS: Waldo Jaquith has published a Q&A w/ Tim Wisniewsk on the U.S. Open Data site. ++ What are you using Jekyll for? Let us know.