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.
Pete Keen has a great article on handling purchases so they happen once and only once with Stripe
I migrated an ad-hoc URL slug solution to use FriendlyId for Orientation this morning and thought this could be handy to anyone in a similar situation.
Just wrote up a post about Method object and the things it provides: http://blog.diatomenterprises.com/breaking-down-method-object/
A brief introduction to the first data mapping backend used by ROM. Meet Transproc.
I recently sorted through an unexpected error around singleton methods; this post is a breakdown of where things went wrong initially and how it got sorted out.
Yesterday’s release of Minitest 5.6.0 brought some important changes to the framework, and even though your existing tests will keep on working as they always have, you’ll want to pay attention to avoid unpleasant surprises in the future. This post explains what you should expect and why it’s happening.
Hello, The new max.rb Datafile lets you build a football.db with all open football data repos from GitHub w/ a single command that will 1) dowload all datasets (as zip archives), 2) create the SQLite database (and schema) and 3) read-in all datasets (from the zip archives), that is, try:
$ sportdb new max. If all works - check w/
$ sportdb stats - and you will get: 100 leagues / 56 seasons; 77 events (league+season recs) / 1470 rounds / 133 groups; 1206 teams; 11001 games; 242 assocs
orgs; 200 grounds
stadiums and so on. All datasets and tooling public domain. Cheers.
Search filters are a very common feature in any application. I’ve used two gems for several projects I worked on: has_scope and searchlight. Both gems works out of the box, but they are not as flexible as I would like them to be and that’s why I decided to create my own gem, Lupa. Keep Reading
In Rails you use class-level declarations such as has_many, belongs_to, and other so-called “macros” all the time, but do you know how they work? In this short video tutorial we recreate a simplified version of the has_many declaration from scratch so you understand how to apply this same powerful technique in your own Ruby code!
Pure ruby gem for filling context of exception http://ilyabylich.svbtle.com/exception-manager-gem
You’re about to check in your next small feature, so you kick off a full integration test run. You wait, and wait, as the dots fill your screen, until you see that first
F. Do you really have to wait for the entire run to finish before you can see which tests failed?