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.
Legacy migrations in Rails
I posted some advice on legacy migrations, based on Zach Holman’s article on the same topic a couple of years ago and my own recent experience migrating a few datasets to new applications. I’d appreciate any feedback or additions you might have. Thanks!
New gem: sprocketize
I released sprocketize today. Sprocketize is a command-line utility for the sprockets gem.
bullet 2.1.0 released
I just released bullet 2.1.0, bullet helps you to kill N+1 queries and unused eager loading, it’s a long delay but finally it support rails 3.1.
How to learn Rails
How to learn Rails from the beginner to the expert. This is a collaborative tool, so feel free to add your suggestions, motivating all of them.
New gem: validates_formatting_of
I released validates_formatting_of just a little over a week ago. It gives you basic formatting regex options for validating emails, urls, etc. for your rails projects without writing them yourself or going to find a new regex option every time.
rails_best_practices 1.6.0 released
I just launched rails_best_practices 1.6.0, it adds remove unused methods in helpers check, add mercurial support, check out the changelogs here
Sushi: Capistrano SSH recipe.
For guys who use capistrano for deployment and administrate servers via ssh. Sushi gives you cap ssh power.
Ed: A Domain Specific Language(DSL) that you can use to talk to Git from Ruby.
Ed is a Domain Specific Language(DSL) that you can use to talk to Git from Ruby. It isn’t intended to be a full interface to Git, but a very small subset of one that allows you to profile code from tag A against tag B (for example). Project is very young, so it may have edge cases I haven’t caught, it definitely hasn’t matured (yet) but please try it out if it’d be useful to you(and report bugs :))
JSON formatting on your command line
I wrote this very simple gem for formatting json from the command line. Very useful with curl. Read more
MongodbLogger for Rails 3
I just finished my gem MongodbLogger. This gem allow to store all Rails logs into database and give web interface to look on this logs. Read more
RubyMine, a Rails 3 photo gallery app
I just launched RubyMine which is a simple Rails 3 photo gallery app for personal use. Simple UI, basic features and zero complexity. Easily customizable and forkable on github.
resque-retry v0.2.2
New version of resque-retry has been released, adding the ability to set per exception retry delays thanks to Dave Benvenuti.
Smooth S3 - A superset of the S3 gem geared towards backup operations
Smooth S3 is a user-friendly superset of the S3 gem geared towards file system backup operations. It greatly simplifies regular file uploads to S3 by using Convention over Configuration™. The library also adds new features such as directory synchronization and timestamped uploads, which should come in real handy to anyone doing backup scripts on a regular basis. Read more
Turn any ruby code into a simple daemon with Dante
As part of a not-yet-released larger project that we are working on at Miso for managing service-oriented architectures sprung Dante. In our latest blog post, we detail the usage of Dante to manage starting and stopping daemons created from arbitrary ruby code. Dante manages starting, storing pids, accepting CLI options, and more for a process. We use dante for all process management in our new Gitdocs (open-source dropbox) project as well.
Ruby On REST: Introducing the Representer Pattern
A comprehensive introduction to the new Roar gem which puts focus on object-oriented REST documents with HATEOAS, hypermedia support, client and service usability, fast tests and saving the world.
Adding Kyle Neath's KSS to your project as a Rails 3 engine with kss-rails
I just launched kss-rails and hope it allows you to create style guides just that much easier within your Rails applications.
jClassy: Comparison with other libraries
A comparison of JavaScript class system core libraries is available at jclassy.org/doc/co/. As part of it, the JS.Class variant of the Ruby object model is described.
Fake It! (the filesystem, that is)
Just posted on the Highgroove blog about faking the filesystem in unit tests.
GroupedScope: Has Many Associations IN (GROUPS)
https://github.com/metaskills/grouped_scope http://metaskills.net/2008/09/28/jack-has_many-things/ </p> An old ActiveRecord extension that I just updated to work with ActiveRecord 3.1. GroupedScope provides an easy way to group objects and to allow those groups to share association collections via existing has_many relationships. It also maintains existing existing scopes, association extensions and options defined in your original collection association. Some new things in this release: (1) Very minimal extensions in ActiveRecord (2) Uses ActiveRecord::Relation and Arel internally (3) Now uses Arel/SQL for the group scope vs. a ton of member IDs. Read more
Which are your favorite Rails commits?
In this article I’ll show you mine: Learning from the masters: some of my favorite Rails commits.
How to set up gedit 3 for ruby and web development
The ubuntu/gnome default editor is pretty slick. This guide shows, how to configure it for development.
RubyConf India 2012 at Pune - CFP is open
The call for proposals for talks at the RubyConf India 2012 is now open! Please go ahead and submit your proposal. The call closes on December 25th.
Video encoding processor for CarrierWave
I just posted short info / description on how to create simple video processor for CarrierWave, that will take your uploaded video file and convert it to mp4 / webm format. To make thins even simplier, it’s using just released ffmpeg wrapper called voyeur.
Janki Method: Learning Rails with 6000 Flashcards and Spaced Repetition Systems
In his book Outliers, Malcolm Gladwell told the world it takes 10,000 hours to master something. Practice three hours a day, and you will shine in ten short years. Problem is that you don’t have 10,000 hours. Read more