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.
Before, after, and around filters in controllers
Are you a new developer trying to learn Ruby on Rails? The latest Rails Coach podcast discusses before, after, and around filters in controllers.
Command Line Feedback from RVM and Git
If you’re like me, most of your day is working in Git and RVM. I am frequently typing git branch to remember what branch I’m on, and rvm gemdir to remember what ruby version and gemset I’m using. With all those wasted cycles, there has to be a better way. And there is.
Protocol Buffers, Avro, Thrift & MessagePack
Which is the best serialization format? Protocol Buffers from Google, Facebook’s Thrift, MessagePack, or maybe Avro? A look at the use cases and the historical context in which each was developed is instrumental in helping us answer this question.
The When, How, and Why of Metaprogramming in Ruby
In the latest Ruby Rogues podcast, we discuss the when, how, and why of metaprogramming in Ruby. Our expert panel includes Avdi Grimm, Josh Susser, David Brady, James Edward Gray, Charles Max Wood, and Gregory Brown.
Making ActiveRecord Models Thin
Here are my thoughts about separating business logic from the persistence: Making ActiveRecord Models Thin. Let’s have a discussion!
Backends in Rails 3.1
I’ve written a blog post on creating your own backend using Rails 3.1. It shows of some great gems for making this a relatively simple task and showing of some of the new features of Rails 3.1 at the same time. It’s complete with source code on github and a running example on Heroku (login with frodo:thering)
Uninitialized variables in Ruby
Post about Uninitialized variables in Ruby. And what if you will have one.
Use Redcarpet as a Markdown Filter for Haml in Rails
Haml by default does not use Redcarpet Ruby Gem if available as the dependecy to parse Markdown text format. But it’s easy to overwrite the Haml internal to use Redcarpet. Read more.
Ruby Programming 26th Batch: Registrations now open
Learn Ruby Programming. Registrations are now open for RubyLearning’s popular Ruby programming course. This is an intensive, online course for beginners that helps you get started with Ruby programming.
Use Compass Sass Framework Files With The Rails 3.1.0.rc5 Asset Pipeline
For those living on the edge and who had this working on 3.1.0.rc4, here is an updated article on a few key solutions.
Convert Ruby object to array
Have you ever been in a situation where you needed a method that does the following: [more inside]
Podcast: Arthur Chiu & Nathan Esquenazi on Padrino, Sinatra, and Rails
Dr Nic Williams talks with Arthur and Nathan about Padrino, Sinatra, and Rails.
Josh Berkus from the PostgreSQL core team
I interviewed Josh Berkus from the PostgreSQL core team. We talked about the tradeoffs of using MySQL vs Postgres, the history of the databases, and relational database concepts.
Appsent - One more config management solution
This gem provides easy way to handle loading different config files, validations for necessary config values, in a such way: your application will not start until you fill all needed settings, and when you done you will have access to every your in a convenient way.. More at appsent github, appsent relishapp and appsent rubygems.
Shaven - templating without mustaches!
Some time ago i’ve pushed working idea of totally logic-less templating system called shaven. It’s mix of tuned up presenter layer similar to defunkt’s mustache and neat, designers friendly, logic less html templates. Would be great to gather some feedback from you guys and push it to production!
Implementing a video player with Ruby
Here’s a 7 minutes video podcast on implementing a video player (GNU/Linux) using the Ruby extensions hornetseye-ffmpeg, hornetseye-alsa, and hornetseye-xorg. More …
Miso Adventures in Scaling: Setup and Tuning of PostgreSQL
Several months ago, Miso migrated from MySQL to PostgreSQL after considering multiple persistence alternatives. This new post is the first in a series that explains our experiences with PostgreSQL and how to get it running with your applications. Covers why we chose it, how to tune the database and which parameters are most important.
Basic Schema Concepts for Cassandra and the Cassandra Ruby Gem
I released a video that explains the basic schema concepts for cassandra and the cassandra ruby gem. If you’re considering NoSQL options, check this one out!
How to test Rails 3 SSL enforcement with Capybara and Devise
A lot of Rails blog posts recommend that you only turn SSL on in production and don’t try to use it in the test or development environments. I explain why this is a big mistake and and present all the code I used to get SSL working with Rails 3, Capybara, and Devise.
"Test First" avec Ruby
I just launched a blogpost about minitest ( french ) .
Cron tasks for your Rails application with Resque
We had an interesting case with cron tasks implemented with Rake killing performance of our application server. This post discusses the problem in detail and provides a simple and effective solution for it.
How do I test my code with Minitest?
Ruby Hero Steve Klabnik’s new article on RubyLearning “How do I test my code with Minitest?”
LogicalModel - Like ActiveRecord for Restful Resources
I just launched Logical Model, like active_record for RESTful resources. Its code is almost all found on ihower’s slides but since I found no implementation here goes mine. It’s still pretty raw but I’d be glad if you gave it a try and dropped my some issues/advices/praise.
Persist your data in YAML files instead of SQL. Wait what?
A couple weeks ago, we open-sourced a simple library called YamlRecord adding a standalone ActiveModel interface to YAML persistence. Today, Nico Taing published a follow up blog post on the Miso engineering blog about how we built this, what we use it for and why it makes sense for us in particular scenarios.