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.
10 Reasons why PHP is Still Better than Ruby
Looking for an cheap excuse why not to switch from PHP to Ruby? You might find it here.
Rails Test Prescriptions Paid and Free Update
Both the paid and free versions of Rails Test Prescriptions have been updated. The paid version: is now available on Lulu.com. This version has two and a half new sections: * A really long section on acceptance testing with Cucumber. * A less long section on using Autotest to run your tests. * Half a section - really an extended rant or two - on testing style. The free version is available at the Rails Prescriptions site and includes the Cucumber section from the paid version. The free version is now 80+ pages of how to test in Rails. The blog post at has more details on the update.
Disabling third-party services when they stop performing (in Rails)
This simple little hack - one model, migration, rake task, and cron job - will let your service adapt autonomously to the availability and responsiveness of third-party services.
Simple backups can be simple!
Simple backups for your applications: * opensource :) * simple to install and configure * support for simple ‘tar’ backups of directories (with includes/excludes) * support for simple mysqldump of mysql databases * support for symmetric or public key encryption * support for local filesystem and Amazon S3 for storage * support for backup rotation. we don’t want backups filling all the diskspace or cost a fortune on S3 [more inside]
Rubx: Twitter's Ruby shell
Rubx, also known as Ruby Boobie, is a nice spoiled girlie bot that runs on Twitter. She listens when you talk to her and when you do, it’ll better be with Ruby: She will interpret your tweet in Ruby and reply to you with what your code returns. How does it work? You send a message to her: [more inside]
Henry Ford & Event Driven Architecture
Henry Ford’s answer for ‘scalable infrastructure’, also commonly known as Event Driven Architecture.
RailsAPI.com with ruby and gems docs
Single search index with smart match. Downloadable. Custom doc packages. Please tell me if your favorite gems/plugins are missing. Also sdoc generator got new template, ruby 1.9 support, js performance improvements and tiny features
deprecate — "Time bomb tests" library
deprecate is a library for deprecating features after a certain date, version, or other arbitrary condition is met. I started this library a while ago but decided to finish hacking it out when I saw the “time bomb tests” blog entry on RubyFlow. :)
state_machine 0.7
state_machine 0.7, an FSM library, has been released. Highlights include: seamless REST integration, improved AR / DM support, and more access to events / transitions
Time Bomb Tests
Time Bomb Tests: easy cheesy reminders you can put into your test suite. They’ll sit there like little time bomb reminders - exploding only when you need them to. Useful for reminding yourself about stuff, like what config lines to add when you upgrade to the next version of Rails.
3, 2, 1... go! Your contact form is ready!
Simple form is a nifty DSL for contact forms, which will be ready to go in a minute! Blog post here and Github page here.
FrontCompiler (source compactor) was updated
FrontCompiler was updated, some new juicy features were added. Now it is even more powerful. (FrontCompiler is a simple collection of compactors for JavaScript, CSS and HTML source code. It removes trailing whitespaces, comments and transformates the local variables to make the sourcecode shorter.)
Redcar: A Textmate-like Editor for Gnome
Redcar is a pure Ruby text editor for Gnome. It has syntax highlighting, snippets, macros and is highly extensible. It’s still in an infantile stage but it looks very promising and so far the app is running very well (on my box). Redcar’s blog has a category for posts with screenshots if interested.
Introduction to Rack middleware
Introduction to Rack middleware will give you some initial information about Rack and writing middleware.
ActiveRecord & ActionController logs in script/console
ActiveRecord & ActionController logs in script/console This article is for reference.Here it illustrates,how to view the logs of active record and action controller
How To: Setup RSpec, Cucumber, Webrat, RCov and Autotest on Leopard
RSpec, Cucumber, Webrat, RCov and Autotest are a powerful combination of tools for testing your Rails app. Unfortunately getting them to all work nicely together can be a bit of challenge. I recently configured a development environment from scratch on OS X 10.5 Leopard and kept track of all of the little details. Continue Reading The Article…
Rack Screencasts: if you don't know Rack yet, you should!
If you’re a Ruby web developer and you haven’t learned Rack yet … now’s the time! Rails 2.3 has spectacular Rack support, as do: Merb, Sinatra, Ramaze, Mack, Camping, and more. I’ve released a few screencasts for learning Rack that some people have found useful … sooooo, I figured I’d share with the rest of the community, incase someone else finds these useful!
JetBrains RubyMine IDE goes Beta
RubyMine is the IDE for Ruby and Rails developers featuring intelligent editor with type aware and Rails-specific code completion for Controllers, Helpers, Views, find_by_* methods and methods like url_for, redirect_to, etc. Rails-aware refactorings, dedicated views for Ruby on Rails project navigation, graphical debugger and much more. During the Beta period everyone is entitled to receive 50% discount coupon to purchase RubyMine 1.0 for only $49, when it is available.
Rails Template: Create a Twitter Application in Under a Minute
Want to create a Twitter application today, this morning, like right now? This template will get you there.
How to deploy rails with ruby 1.9
If you want to deploy your rails application with ruby 1.9 check out this article.
Rubyxp.com with ruby 1.9
rubyxp.com is now running with ruby 1.9, meaning you can test your regular expressions with the new Oniguruma engine. Quickref to be updated soon.
Proxen: Simple method_missing proxying
Proxen is a gem for easily dispatching method_missing calls to other objects, a common pattern for implementing proxies. It can generate blank slate proxies, accept multiple possible dispatch targets, and more.
A Tour of JRuby's Optimization Techniques
a.k.a. How JRuby makes Ruby fast. Charles Nutter takes us on a walk through JRuby’s differing levels of optimization and what effects they have. A great read.