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.
Map Fields - A rails plugin to make importing CSV files easier
Use map-fields to give users an opportunity to map their CSV structure to the schema you require in your app.
Routes version 0.02
Routes version 0.0.2 has been released. Routes is a ruby library to deal with routes, you can browse the source code and contribute on github.
Run multiple sites in a single rails instance (a la Basecamp style)
If you run multiple, mostly identical copies of a site, you should probably be using my new plugin acts_as_restricted_subdomain. It will allow you to run one application with n subdomains all with completely segregated data. It will prevent cross pollination of data while still allowing you to administer the site in a script/console session. Session access is restricted, so users that log into one site will not be authenticated for another site. Models get automatic validations and query restrictions for finding. Controllers will display a 404 error when a site is not found. Good stuff.
Colorizing console output with Rainbow ruby gem
If you’re working on some cool ruby console-based application or just want to add a little style to your script here is a nice gem for you. It’s called Rainbow and it extends ruby String class adding methods to wrap the string with ANSI escape codes.
Getting to grips with git
First part of my blog series on using git. I’ve been using the version control system, git (along with github) for a couple of months now, for my open source projects. At my company, we recently decided to take the plunge and start using git for our main code repository. With this series of blog posts, I hope to ease the transition from subversion (or sourcesafe, or whatever) to git. In this article, I’ll just cover the basics. More advanced stuff will come later.
Tweet me some Regex
Tweet me Some Regex - Don’t forget to tag it #ruby #regex
Arduino with Ruby on Leopard
A simple guide to the caveats of setting up RAD on Leopard so you can program your Arduino microcontroller in Ruby.
Deadlier and simpler Rails deployment
Tired of SSH-ing by hand? Is Capistrano overkill? Here’s how I use git push to deploy.
Rack middleware showing git or svn revision
Use Rack::RevisionInfo rack middleware if you want to put revision information into the page on your demo/staging server.
Easy Map-Reduce With Hadoop Streaming
Hadoop Streaming allows you to use Ruby to easily create and run Map-Reduce jobs on top of Hadoop - learn how!
How to create a dynamic javascript widget
How to develop a Javascript widget. There is also live DEO.
Word truncating
This helper truncates strings with a word # argument (default 70), not a character #. Really helpful for truncating before textilizing.
Extending Ruby and Rails core classes
Learn why you should and how you can extend Ruby and Rails core classes idiomatically, object oriented style.
Ekuseru -- Rails plugin to create excel documents
I had a problem to create Excel spreadsheet documents in Rails. I can’t find a right plugin or library to use, cause many of them simply create HTML or CSV and send it to user with Excel header. If you have the same problem, maybe this plugin, Ekuseru can be useful. This plugin provides templating abilities to create the documents.
The speed, size and dependability of programming languages
Guillaume Marceau posted some measurements of speed and code size for different algorithms implemented in various programming languages. The measurements include Ruby, Python, Perl, CMUCL, and YARV.
Notes from GoRuCo
Luke Melia (see his blog) and I (seydar) took some notes on yesterday’s GoRuCo in NYC. We made sure to get every talk, and did our best to cover the lightning talks at RejectConf as well! We used Etherpad to collaboratively take notes on different sides of the room, and these notes are our final result.
Erlang made stupid simple for Ruby programmers
Click here to win a fortune (of knowledge) Started learning Erlang with Joe Armstrong’s great book, these are my notes.
Which Ruby Libraries or Tools Deserve More Exposure?
I’m often mentioning amazing Ruby libraries or tools I’ve seen to people and assume they must have heard of them (examples: Chronic, Ramaze, Feedzirra). Often, people are surprised and delighted to learn about new stuff I thought was common knowledge. So what libraries or tools do you think are underrated or poorly exposed? I bet there’s a ton of stuff I’d find interesting that you know about that I’ve never seen before. Let’s all share and enjoy :)
Exploring How To Configure Irb
This post explores all of irb’s configuration options. The second post in my series on irb.
Is It JRuby? Find out which gems do and don't work on JRuby.
Carl Mercier has forked Brightbox’s Is It Ruby 1.9 Ruby 1.9 Gem compatibility web app to make Is It JRuby that tracks which gems work with JRuby. (Found through John Leach of Brightbox.)
Charles Nutter on JRuby
Still busy trying to squeeze in as many talks as possible at Rails Underground. One speaker I can confirm is Charlie Nutter. I had a quick chat about the latest JRuby news, and how you can contribute.
Beginning ruby on rails, where to start and find help?
A post for ruby on rails beginners looking for help and documentation. If i’ve missed something, just leave it on the comments.Beginning ruby on rails, where to start and find help?.
GitHub.js: A GitHub JavaScript library
A simple JavaScript library for interacting with GitHub’s v2 API. Checkout the blog (spammy) post or dive directly into the code at GitHub.