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.
A gem for defining ruby exceptions
Exceptions in ruby are defined by subclassing off of a standard exception and then using raise to invoke them. Messaging is typically separate from the class definition which isn’t very DRY when invoking raise with a second String argument multiple times. The define_exception gem provides a succinct manner in which exceptions can be defined much like read/write attributes in your class using attr_accessor. It also makes it trivial to define a default message so that in most cases the second argument to raise is not necessary.
Cap Release Notes
If you write down your release notes, here’s a tiny cap task to print them at the end of your deploys.
New Relic
New Relic now has extra visibility inside Lucene Solr servers. Check it out.
homebrew + apple + chef = cider
I just launched cider and would love feedback on how well it works for people. It should not screw with your current dev environment so try it out!
Rails 2.3.7 Released
Hours after releasing Rails 2.3.6, the team has released its successor Rails 2.3.7!
Video: John Nunemaker talks about MongoDB
Webpulp.tv just published the latest episode with John Nunemaker talking about Varnish, MongoDB, and how it has changed his dev cycles a bit.
Combining RDoc and RSpec to create testable documentation
I would love to hear your feedback on the idea of “combining RDoc and RSpec to create testable documentation”. Posted a more detailed explanation at: http://gist.github.com/412283
IPAddress: new IP manipulation library
I’ve released IPAddress 0.5.0, first release to be public available. IPAddress is an IPv4 and IPv6 addresses manipulation library, designed to be easy to use. It is probably the most complete and powerful IP manipulation library available today.
How to model a custom search form in Rails
I just wrote a post about “How to model a custom search form in Rails” on our DevInterface Blog.
Testing Javascript with Cucumber in Javascript
Javascript adapter for Cucumber which uses TheRubyRacer which provides bindings to V8 -> Testing Javascript with Cucumber in Javascript
MongoHub - Awesome MongoDB admin tool for the mac.
Checkout MongoHub a tool for managing MongoDB databases.
Mount Rack apps in Rails 3
How to mount a Rack app in Rails 3 using the mount-method or the anchor-parameter.
Fallback attributes to delegate
Fallback to delegate if somethings fishy. fallback :title, :to => :shop, :if => :title_to_short?
Create printable PDF cards from your Pivotal Tracker stories
If you’re using Pivotal Tracker and need to print your stories for estimating/discussion, you should have a look on a Ruby script I’ve created to lay out a nice PDF version of your story cards, ready to print and cutting up. The PDF is generated with Prawn so you should have no trouble modyfing it to suit your needs.
My first Rails bugmash
My first Rails bugmash, a small article about my experience in participating in the recent bugmash.
DataMapper 1.0.0 RC2 Released!
I just released DataMapper 1.0.0 RC2 to rubygems.com. Please install, test it out and let us know if you run into any issues.
RubyNation 2010 Videos
The videos from RubyNation 2010 will be trickling out over the next few weeks. Jim Weirich’s talk on Solid Ruby is live now.
TinyMCE plugin with filemanager support
We’ve just released tinymce_filemanager - rails plugin / wrapper for tinymce with embedded filemanager plugin.
The top 20 plugins to create a Rails application
Rails is now closer to its official third release and all plugins and gems authors are working to ensure compatibility of their products with the new version of the framework. [more inside]
New Rails Dispatch Post: Upgarding Your Rails 2 App to Rails 3
Another great post + presentation by Yehuda Katz and Rizwan Reza - check it out!
Host images offsite using paperclip without S3
paperclip_uploadd is Rails plugin that uses Uploadd to host your images on your own CDN outside of your application servers.
Detecting duplicate images with Ruby
Phashion is a Ruby wrapper around the pHash library, an API for detecting duplicate and near-duplicate image, audio and video files. It currently only supports images but your help is welcome!