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.
Valle gem: built-in limit validations for your ActiveRecord model
Valle automatically adds validators to your ActiveRecord model(s) based on column type and limit.
Serving Fonts for Firefox with Fastly
Implementing a CDN for assets can be a big win. It’s relatively easy outside of serving fonts. Firefox is notoriously difficult and my latest blog post details the steps necessary to properly serve fonts to Firefox using Fastly.
Pluto Planet Site Generator New Styles / Template Packs - Hacker (Hacker News), Digest (Alterslash)
Hello, The pluto planet site generator gem that lets you build web pages from published web feeds now includes more template packs. You can see the hacker (inspired by Hacker News) and the digest (inspired by Alterslash) template packs in action on Planet Ruby or Planet Vienna.rb. Find out more at the pluto project site. Cheers. Happy planet.
How To Create PDFs in Rails
Mike Ackerman posted about creating PDFs in Rails with Wicked PDF.
Ruby API wrapper using Virtus and Typhoeus
I just posted an article about building a client API wrapper using Typhoeus and Virtus.
The tools that are right under your nose
I wrote about understanding and knowing when to use tools like SimpleDelegator and Forwardable, tools readily available without needing any bundle install.
Sinatra Cookbook - Recipes for the Ruby framework
I just launched a Kickstarter project to fund an ebook, Sinatra Cookbook. I’ve also blogged about it.
Using Bundler and System Installed Ruby Dependencies Side By Side
In my latest blog post I discuss using bundler_ext to activate the distro-supported, system-installed (eg yum/apt-get/other) versions of dependencies described in a Gemfile while still allowing the flexibility of developer installed stacks.
Que - a fast job queue using PostgreSQL as a backend
I just launched version 0.1.0 of Que, a gem that uses really cool features in PostgreSQL for fast and reliable job queueing.
Struct Screencast
I just released an early RubyTapas episode on Ruby’s Struct class for free. It’s a quick intro to what the class does and how, if you aren’t using it already, it may just be your new best friend. Also gets into some more advanced Struct features you might not be aware of, as well as a short discussion of Ruby’s special treatment of anonymous classes.
Extreme Makeover: Rubygems Edition
André Arko covers the work he’s been doing to improve Rubygems.
Rubyconf 2013 quick recap
Quick Recap of the conf
Delegation is Everything and Inheritance Does Not Exist
A while ago I researched and wrote about the meaning of “delegation” in programming. Most commonly, developers think this means just forwarding a message to another object, but I wrote to both Henry Lieberman (who coined the term) and Lynn Stein to get a better understanding from these pioneers of OO. I wrote about that on my website and created the casting gem from the idea too.
New gem: natives - list native packages required by gems
I gave a short talk (slides) at Ruby Singapore meetup about a new gem released recently: natives, it lists native packages required by gems on your machine.
Does Ruby Have a Metaobject Protocol?
I finally made it through the classic “The Art of the Metaobject Protocol.” Read more
Ruby Hooks for Metaprogramming
Want a big list of links to Ruby hooks for metaprogramming? Read more
Rescue StandardError, not Exception
Sometimes our Ruby programs throw errors which we don’t have full control over, such as network timeouts. So, we need to catch and handle those errors. To do so, we need to choose an Exception-descended class (or classes) to catch. What’s the right granularity of that class? Read more
Make irreversible migrations work with Rails 4
This post introduces new method in Rails 4 which allows to make irreversible migrations work.
Forking and IPC in Ruby, I
Robert Qualls has posted the first of a two-part series on Forking in Ruby. Robert always goes very in-depth, and this article is no exception.
"whoa - I almost broke EVERYTHING"
Ever confuse your production console for your dev environment? That will never happen again. Read more
A Beginner's Take on RubyMotion
A few of the benefits of using the RubyMotion toolchain to develop iOS apps from a beginner’s perspective. A Beginner’s Take on RubyMotion -Travis Valentine on Growing Devs
Anyone Interested in ActiveRecord Hackery?
I’m looking for new maintainers for some relatively popular gems that jump through a lot of ActiveRecord hoops.
Rack::EnvNotifier
Lightweight middleware notifications Read more
RSpec is not cool
Just read it - blog post
Faking Remote Services with Rack::Test
Using Rack middleware, we can reroute Rack::Test requests to fake remote services without spinning up servers. This example shows how to use that technique to handle the Transparent Redirect HTTP requests for the Braintree payment gateway.