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.
Ruby on Rails: Code Metrics Identify Weaknesses, Strengthen Code
As time goes on, many Rails teams find that the rate at which they can add or improve features (known as the team’s velocity) is significantly reduced. To address this problem, teams should adopt practices that allow them to identify risky and high-maintenance code and refactor the code to improve it.
LazyGem - First pubic release
I just launched LazyGem 0.0.1, this allows you to auto install all of the gems that your subscribed too on GemCutter.org. feedback, comments or even refactoring are welcome. This is my first gem release.
Rails 3.0 Beta Released! How To Install It.
So the beta of Rails 3.0 is now out! I’ve published some instructions on how to install it.
Full text search in JRuby with ActiveLucene
ActiveLucene is like ActiveRecord but with Lucene the full text search engine, know the details in this post.
Rack::ForceDomain: Because the alternati...
Rack::ForceDomain (or source on GitHub): Because the alternatives were too complex for my simple mind. Usage on the back of a stamp:
$ gem install rack-force_domain
$ heroku config add DOMAIN="foo.com"
use Rack::ForceDomain, ENV["DOMAIN"]
Loading Radiant CMS extensions from a non-standard location
I often have websites that need to have similar functionality. Here I discuss a simple way to manage standard and custom extensions between different sites.
Spriter: Easy CSS sprites
Spriter is a new gem that makes CSS sprites easy to create and maintain. (Blog post / GitHub)
The Rails Module (in Rails 3)
Learn about how the Rails module is awesome, and how you should be using it.
Shadowgraph, yet another YouTube copy in Rails
I just launched shadowgraph, yet another YouTube copy in Rails.
Don't delete your records, move them to a different table
A Rails plugin called acts_as_archive does just that. Very easy to set up and auto-migrates from acts_as_paranoid.
Cuking a service-oriented rails app with Dupe (aka, factory-girl for ActiveResource)
If you’re going to create a service oriented rails app with ActiveResource, why not cuke the frontend first, letting the frontend drive the services you’ll eventually create in the backend service provider? Dupe is the factory-girl of services, and makes outside-in BDD with cucumber possible for a service oriented app. Get gem installation instructions and an overview of the features or check out an in-depth tutorial that takes you through the cuking process with dupe.
Simple Gem Hosting: GemInABox
I made this geminabox thingy to host our internal rubygems. It’s dead simple. Kinda like a lazyman’s Gemcutter.org, but just for your office, and with low quality graphic design. I did a bloggings too. I hope someone else finds it useful.
Rubular - Browser based regex testing
Recommend Rubular for testing regex expressions. It’s been very handy for this new gem I’m about to release called LazyGem (My first gem release).
Monitoring Delayed::Job with Scout
Lukas Rieder, Alexander Lang and Eric Lindvall have created a Scout plugin for monitoring Delayed::Job. With the plugin, you can graph and get alerts on running jobs, scheduled jobs, failed jobs and more.
New version of the webtranslateit gem
I just released a new version of the webtranslateit gem, to sync your translation files between the Web Translate It service and your app. The gem now include an executable, so you can sync the language files of any kind of apps (not only Rails apps). These tools should make your internationalization experience much more enjoyable.
Alter Table: A Rails plugin to support multiple clauses per ALTER TABLE statement in migrations
The Rails team at XING developed the alter_table Rails plugin to extend ActiveRecord migrations with MySQL’s native ability to run multiple alterations on a table in a single ALTER TABLE statement.
Head First - OO Analysis & Design fifth chapter review in Ruby code
Check out the fifth chapter of the book review I’m working on regarding O’Reilly’s Head First - Object Oriented Analysis and Design. All native Java code translated to Ruby.
Faye: a Comet client and server for Node.js and Rack
Faye is a toolkit for publish/subscribe messaging between web clients. It includes a JavaScript client library and two server backends, one for Rack based on EventMachine and the other a brand new version for Node.js. More info on my blog.
toto - tiny, powerful, heroku & git based blog-engine for hackers
My goal was to create something really small (~300sloc), right on top of Rack, and make use of git & heroku whenever I could, foregoing the need for any kind of database. Comments are handled by disqus, and we got markdown, atom and templating support. Go check out http://cloudhead.io/toto for more info. The repo’s at http://github.com/cloudhead/toto - enjoy!
Ruby live music coding (2 screencasts)
If you’re into music and ruby, here are two screencasts demonstrating Nasir (a live coding system). I believe the code is not yet available but should be on github later on, most likely.
How & why Matt Aimonetti joined the "suit people"
Matt just announced he’s giving up his life as a free agent to join Sony PlayStation. Is he going to wear a tie, code in Java, spend hours in meetings? Does this mean that Ruby is now mainstream? Read more to find the answers to these existential questions and hear about the reasons behind his decision.
Undo/Redo in MacRuby
Matt Aimonetti just posted a simple MacRuby tutorial showing how to use Cocoa’s built-in classes to implement undo/redo and use the functionality in a simple Ruby script.
Presentation by David Ungar (Stanford University Youtube channel)
David Ungar of Self fame mentions Ruby in his presentation ‘Self and Self: Whys and Wherefores’ although not in exclusively favourable terms: [more inside]