RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Multiple sets of independent validations with validation_scopes

I cooked up ValidationScopes to expose the full power of ActiveRecord validations to more than one set of errors. Useful if you want to display different sets of errors in different contexts and still be able to save the object regardless of the additional validation sets’ state. It is about as loosely coupled as possible to ActiveRecord::Validations which means you can expect a smooth transition to Rails 3.

Gravatar Image Tags: Updated and bundled into a gem

With the 0.0.2 release of gravatar_image_tag: Https support was added.; Ratings support was added; File extension support was added. It really is this easy: gravatar_image_tag email and you have gravatars in your application. Check out the well documented and configurable project on github

Whoops - link goes to githug.com
Fixed. I kinda like “githug” though :-)

RubyConf Taiwan 2010 CFP

RubyConf Taiwan 2010 will be held on April 25, 2010 in Taipei, Taiwan. If you want to give a presentation at RubyConf Taiwan 2010, please submit your paper. Any topics related to Ruby are welcomed. The deadline of call of papers is Jan 31, 2010. We have two session lengths for speakers: Session(45 min) or Talk(20 min). Please submit the subject, extract and author intro, by sending email to: 2010@rubyconf.tw

Get your local Rails application ready for I18N

I just launched a handy tool helping transfer your local Rails project to an i18n one by extracting text from HTML and helper methods from ERB views. An introduction blog or Fork it at Github Install: gem install ready_for_i18n Usage: ready_for_i18n <path_to_ERB_source_files> [target path] Non-Enligsh project usage: Check here

Hi all, is there a i18n extraction gem/lib out there that actually works wit…
The ErbHelperExtractor in ready_for_i18n may help a bit but another HAMLTextExt…

Cryptic Ruby Global Variables and Their Meaning

How many times have you looked at some ruby code and found strange variable names (eg. $0, $:, etc) and wondered what they meant? Well here’s an explanation

These globals only seem cryptic if you haven’t spent years coding in Perl :) …
They are called “special variables” and inherited from the Perl world, not exac…

A custom Hoe template

I like to create Ruby projects, and I also like to use Hoe to manage them. With any Ruby project generator, I always hate having to add my usual boilerplate code and Rake tasks. Luckily, Hoe supports using project templates, stored in ~/.hoe_template, with the sow command. For example, here is the Hoe template I use to generate new projects, with RSpec 1.2.9 and YARD 0.5.2 setup. [more inside]

Lemon Unit Testing Framework

I just released v0.6 of Lemon, a unit testing framework that enforces a one-to-one correspondence between test cases/units and classes/methods. While still an early development release, it’s quite usable. And I’m curious to find out what others think of the approach.

the 1:1 ratio is only a very small component of good test coverage. how you wr…
Thanks for the feed back, it gives me some guide to addressing some potential m…

R18n 0.4 for Rails

R18n now has full compatibility with Rails I18n and add to Ruby on Rails: filters, i18n support for models, time formatters, nice syntax and out-of-box pluralizations and autodetect user locale. Also R18n has Sinatra, Merb and desktop plugins.

Rails Package Management

Released a tool that will act as Rails::Initializer’s config.gem and extract plugins and gems to vendor/ like “rake gems:unpack”. It’s portable configuration where you can copy it and paste to another Rails application. You can paste your .rpkg file to gist/pastie/pastebin and download it and merge it with rpkg merge Just good for people who don’t want to type: sudo gem install [plugin/gem] to run Rails application. Read this post about Rails Package Management.

New Screencast: Essential CSS for Every Web Developer

Want to know the basics of CSS? Watch this screencast and learn everything you should know as a web developer. We’ll cover the basics which include colors, borders, padding, margins, lists, fonts, backgrounds, tables, links and floats. This is a very basic screencast, so if you are already familiar with these topics, this might be just a review for you. Watch this screencast and more at TeachMeToCode.com

Why won’t you link to the actual screencast…
Added the link - that didn’t make any sense to me either :-)

Remember - Ruby object persistence

Remember provides quick and easy Ruby object persistence using Moneta to interface with key-value stores via a Hash. This allows you to have a globally persisted hash whose keys are available across different servers or ruby instances. [more inside]

jp@populuxe:~/Projects/remember$ irb -r 'lib/remember' -r 'moneta/redis' >&g…

Better Task Management with Nake

Nake is a task manager inspired by Rake. As well as Rake, Nake supports dependencies, multiple task definitions, file tasks, rules etc, but it can do more. It also supports advanced arguments parsing and task configuration. Nake is also 4x times faster than Rake. Nake comes with a lot of useful tasks for gem building, installation and releasing, running specs and also with snake executable for system-wide task (similar to Sake for Rake). If you are looking for documentation, take a look at Nake Wiki or clone the repository and go through examples.

Loading older posts