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.
Shorter, simpler code with Forwardable
I’m an avid user of Forwardable from Ruby’s standard library. My latest article explains why you can make shorter, simpler code with Forwardable and hide the noise of boilerplate Ruby code.
tty-spinner - 0.1.0 release!
I just released tty-spinner for drawing spinning animations in terminal emulators.
Rubinius 3.0 - The Tools
Here Brian introduces the subsystems of Rubinius: GC, JIT, Metric, UI, and CodeDB.
Clojure Loops in Ruby
An article that builds Clojure style loops in Ruby using continuations. Not recommended for pregnant women or individuals with pre-existing heart conditions.
Action Access: Access control system for Rails.
Action Access is an access control system for Rails that provides a modular and easy way to secure applications and handle permissions. It works at controller level focusing on what actions are accessible for the current user instead of messing with models and their attributes. Read more »
Using spring with pow!
The other day I was a bit sad for I was aware that pow (the web server) wasn’t leveraging spring (the Rails preloader) with its fast load times. Read more »
The Scribble gem: A new client facing template language for Ruby
I just launched a new gem named Scribble. [more inside]
5 Tips for Preventing MySQL deadlocks in your Rails application
Check out Hemant Kumar’s post about preventing MySQL deadlocks in Rails…
Persistent queries in Ruby on Rails with PostgreSQL
Sometimes you need to save a SQL query or query parameters for the future use. Here’s a flexible solution allowing you to save & use it every week.
Persistent queries in Ruby on Rails with PostgreSQL.
Sometimes you need to save a SQL query or query parameters for the future use. Here’s a flexible solution that allows you to save it and reuse every week
Maxitest = Minitest + the features you always wanted
Maxitext - Ctrl+c stops tests and prints failures - pastable rerun snippet for failures - multiple before & after blocks - around blocks around { |t| Dir.chdir(…) { t.call } } - red-green output - mtest executable to run by line number and by folder and more goodies :)
themes_on_rails v0.3.0 has been released
Checkout the v0.3.0 changelog of themes_on_rails .
Lazy Refactoring with Ruby's Enumerator
Look over our shoulder as we refactor and optimize a set of queries.
Rubinius 3.0 - The Instructions
Starting to dive a bit deeper about improvements in the Rubinius instruction set.
Rubinius 3.0 - Process
Interesting thoughts and some welcome improvements planned for Rubinius 3.0.
Migrating to Ninefold, A Source of Developer Joy!
One of my first tasks as NY Tech Meetup’s newly minted hacker-in-residence was migrating our application from Heroku to Ninefold. Scary! Or at least it sounded like it would be. But it turned out to be a pretty straightforward and painless process. Here’s what you do…
A nifty service layer for your Rails app
I just launched Services - A nifty service layer for your Rails app and blogged about it. Let me know what you think!
Introducing new Railsed-based Video Distribution Platform
Over last couple of months, our team has helped further develop a unique video distribution platform. Finally, the big launch day has come and we’d love to introduce you to Uscreen: here’s a little cast study about the platform.
Ru - Ruby in your shell!
Ru brings Ruby’s expressiveness, cleanliness, and readability to the command line. It lets you avoid looking up pesky options in man pages and Googling how to write a transformation in bash that would take you approximately 1s to write in Ruby. [more inside]
Hone Your Craft with RubyMine 7
RubyMine 7 is out with support for Chef, Puppet, EditorConfig, and much more
Deploying a Sinatra Application to VPS
Step by step guide for deploying your first sinatra application to VPS running nginx/passenger [Ubuntu 14.04 LTS].
Faster Way to Source Map DOM Elements
A blogpost showing a Faster Way to Source Map DOM Elements for Rails apps.
world.db.codes - 245 Country Codes (Alpha2, Alpha3, TLDs, etc.) - Sinatra Sample Web App
Hello, I’ve put together a small Sinatra sample web app that shows all the world’s country codes (so far alpha 2, alpha 3, internet top level domains and motor vehicle license plates codes are included.) All code and datasets are public domain. See a live country code page on Heroku or check the world.db.codes source on GitHub. Cheers.
Sorting and Reordering Has Many Through Associations with the ActsAsList Gem
There are plenty of reasons users will want to sort and reorder lists, but implementing such a feature when using the has_many :through association isn’t so obvious. In this post I’ll show you how this is possible using the ActsAsList gem, and along the way show you how to load seed data, create a has_many :through relation, and use the great table_print gem. Read the post.
The Psychology Behind SaaS Free Trials
Almost every SaaS product has a free trial period. Why? At first, I thought it’s to get as many people to try the product, but that doesn’t make sense. The real reason is to create an “endowment effect.”