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.
search_cop v1.0.6 is out
This is a bug fix release. It fixes a PostgreSQL date out of range exception. Check out search_cop to get search engine like fulltext query support for ActiveRecord.
Shopify Rate Limits with Ruby and Sidekiq
Learn how to deal with shopify’s rate limits in a multithreaded environment - Shopify Rate Limits, Sidekiq, and You
Running a Rails app on Docker using the Passenger image
Setting up a Rails development environment using Docker Compose, boot2docker and the Passenger image.
Algorithms Every Programmer Should Know: Reservoir Sampling
I wrote and annotated a small RubyGem to explain the math behind reservoir sampling. Read more
Numeric Bases and Defining Your Own
Explaining numeric bases, positional notation, and implementing your own number bases.
Full Stack Fest Barcelona CFP open
I’m one of the organizers of Full Stack Fest, a conference born from joining the quite successful Baruco and FutureJS. It takes place in the wonderful city of Barcelona this September 1-5. We’re committed to making the conference as diverse as possible, and looking at the previous edition’s attendance statistics, we feel like we can do better. We definitely strive to have a speaker roster and attendee profile as diverse as possible, as this makes for a much richer experience and higher quality. Tickets will be on sale starting this next Monday at 10:00 CEST, and we already have a call for papers and workshops running (with blind selection - will be over on May the 1st). Send in your proposals and stay tuned for Monday!
Gem of the Week #10 - annotate gem - annotate your ActiveRecord models
Hello, over at the Planet Ruby the Gem of the Week series continues with #10 - annotate that lets you annotate your ActiveRecord models with comments about your table structure (schema information). Full article. Cheers.
Testing Ruby Mixins in Isolation
Testing mixin Modules doesn’t have to involve copying-and-pasting tests from one file to another or shared examples. You can write simple isolated tests for your mixins using this easy to understand technique.
All About Methods
A more advanced, and yet accessible look at methods in Ruby and the nuance that comes into play when defining methods on instances, singleton classes, classes, and modules. The secret: think of each as an instance method in the appropriate context. Read more…
Exporting Records to CSV format
In this video, I explain how to generate a CSV file containing attributes and serve it up in the browser using the send_data method in the controller. Watch the screencast on Exporting records to CSV in Rails
SOLID Review: Liskov Substitution Principle
Barbara Liskov introduced her substitution principle back in 1987 during her keynote titled Data Abstraction and Heirarchy. Today, it is one of the five SOLID principles in object-oriented programming. “Instances of any type should be replaceable by instances of its subtypes without creating incorrect behaviors.” How can we ensure that our classes abide by the Liskov Substitution Principle? Read more
New Finance gem
Mortgage and Loan calculations released in a gem https://github.com/kolosek/finance_math Number of others are pretty much outdated. If some explaination is needed regarding algorythm you can send message on http://kolosek.com
Setup your Rails app on Nitrous.io
Seeing how running Rails on Windows is not everybody’s cup of tea, here’s a quick guide on how to run a Ruby on Rails app on Nitrous.io, a cloud development box that you can access from wherever you have a browser.
[TUTORIALS] Auth Ruby Gem for the Javascript SDK using Sinch
You can use the gem sinch_auth to generate a user ticket that authenticates users through the Sinch Javascript SDK. Learn more in this tutorial.
DHH on Rails as an API Server in Rails 5 (Audio)
During our recent interview with DHH, he shared a change of opinion regarding Rails as an API server for client-side MVC frameworks and shared a bit about what’s to come in Rails 5.
A new release for `geo_pattern` is available
A new release of geo_pattern was shipped by @jasonlong. Look here for more detailed description.
Video Tutorial: PostgreSQL Backup & Restore
Use PostgreSQL as the database for your Ruby / Rails app? Check out this video tutorial on how to simply backup and restore it.
8 Things I Learned During 8 Years of Ruby and Rails
Summarized in a personal blog post.
Five Things I Knew About Programming Before I Did a Startup
After reading the Sorrows of a New Developer post, I realized that my attitude toward programming has changed over my career, and I decided to write up a piece of my own, on the ways that my coding practice has evolved.
Phusion Passenger 5.0.1 released, officially ready for production
The 5.x series of Passenger – aka “Raptor” – introduces many major improvements like much better performance, a new HTTP JSON API for better insights into server and application behavior, better logging and WebSocket support, and more. Read the release announcement to learn more.
New Datafiles for Top Football Leagues (en,de,es,fr,it) - e.g. use $ sportdb new top
Hello, I’ve added some more datafiles that let you build your own football.db - using free open public domain datasets - with a single command e.g. $ sportdb new fr2014-15. The new datafiles include: de.rb and de2014-15.rb; es.rb and es2014-15.rb; it.rb and it2014-15.rb; fr.rb and fr2014-15.rb; at.rb and at2014-15.rb; top.rb and top2014-15.rb (includes top leagues e.g. en,de,es,fr,it). Cheers.
CanCan Overview
CanCan was originally introduced by Ryan Bates in 2009 and was taken over by Bryan Rite. It’s been a while since I’ve seen a post about it so I decided to do a write up on my opinion of it. See the details at Thoughts on CanCan