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.
Memoization in Ruby and Python
In this article I show you how to easily make use of memoization in Ruby (and Python).
Radiant CMS Kickstart Script
The Kickstart Script by Benny Degezelle (aka Jomz) will: 1. Create a new Radiant instance, 2. Make it a git repository, 3. Create a local development and test database, 4. Install all your favorite extensions through ray, 5. Give you a preset Capfile, tailored to Radiant.
proxy gem 1.3.0 is out
Fixes all compatibility issues with actionpack >= 2.0.0. This gem/plugin allows rails applications to dynamically respond to proxied requests by detecting forwarded host/uri headers and setting the session domain, default host, and relative url root. Check it out at http://github.com/shuber/proxy
pong with audio, written with Shoes and Bloopsaphone
Watch a video, or grab the source from github and read the blog article for info on running it. Uses Shoes 2 and the latest Bloopsaphone source, both from _why
The TorqueBox Project
The TorqueBox Project provides a full-featured Ruby application platform that expands beyond merely serving Rails applications. It also provides facilities such as scheduled jobs, task queues and SOAP endpoints. TorqueBox is based upon JRuby and the JBoss AS5 Java Application Server.
Run different versions of the ActiveRecord test suite with your gem/plugin/code loaded.
ar_test_runner provides a simple way to run the core ActiveRecord test suite with your enhancements loaded. If your plugin or library code modifies default ActiveRecord behavior, its a good idea to be sure you didn’t break something by running AR regression tests.
Taskit: a rails scheduler plugin
Sometimes, in a rails application, you want to be able to periodically run code outside the context of a web request. I’ve created a simple rails plugin to help you do just that without having to set up loads of crontab entries.
Control Flow Features and Readability
Robert Klemme gets philosophical on Control Flow Features and Readability, giving us some insight into why catch … throw is seen so rarely in Ruby code.
Beginners guide to Jquery + Ruby on Rails development
Simple Jquery with Rails using my application.js and format.js Checkout the tutorial.
Simple Git Externals
Create config file, externals unfreeze, commit to external, externals freeze, commit to parent project. Check out the blog entry or GitHub.
Vim Ruby debugger
If you are using Vim and debugger, you may be interested to look at new Vim plugin that implements interactive Ruby debugger in Vim. Plugin on the GitHub.
The Java Stupidity: "Java Kicks Ruby on Rails in the Butt"
The java stupidity - why they try so hard to impose than Java is better? It’s not true! The article’s subheading is: “This article demonstrates that Java is more productive than Ruby.”
Half-hour MacRuby video and demo app by topfunky
Geoffrey Grosenbach has made available his 30-minute MacRuby presentation for RubyFest. Check it out.
Rails Testing Frequently Asked Questions
I’ve been getting a lot of questions about the basics of Rails testing. Here are some answers.
Getting Started with Rails
A friend asked me how to get started with Rails. Send it to a friend that wants to get started.
Clone TinyURL with 40 lines of Ruby code on Google AppEngine for Java
This blog post - Clone TinyURL with 40 lines of Ruby code on Google AppEngine for Java - is a followup to Clone TinyURL in 40 lines of Ruby code describing how to deploy the same 40 line Sinatra-based TinyURL clone on to Google AppEngine for Java instead of Heroku.
JobFu - Simple Asynchronous Processing
JobFu - Simple Asynchronous Processing solution uses the database as a backend queue. Enable you to set priority for jobs and send mail with Mailer.async_deliver_*
Remarkable::Authlogic
authlogic_plugin create some matchers in RSpec for testing Authlogic the Remarkable way.
ArrrrCamp - Presentations online
ArrrrCamp, the Belgian Ruby / Rails / Radiant / Rum camp took place about a week ago and it was a blast. Slides of the presentations given can be found online at the arrrrcamp site. They range from beginner to more advanced. Also some news about the next camp!
JS Data Helper plugin for Rails
Avoid using custom DOM attributes in (x)HTML4, JS Data Helper assists you passing data from Ruby to Javascript. Compatible with the jQuery 1.2.3+, Prototype 1.6.1+ or Mootools 1.2+ Javascript frameworks.
Atlanta Ruby User Group Presentation on cucumber posted
View the Cucumber Presentation to the Atlanta Ruby User group.
Ruby 1.9 screencasts plus an announcement
A short review of David A. Black’s Ruby 1.9 screencasts and an announcement for Italian speakers.
Entire Sinatra App (with specs) in a Rackup File
Tanner Burson has crammed a Sinatra app (with included tests) into a single Rackup file. What’s interesting is that the app will only run if the specs passed - whoa!
PDF::Writer For Ruby 1.9
I recently started tested all my code (work/play) under 1.9 and had the need for legacy PDF::Writer code to pass my tests under ruby 1.9. Some day I’ll move to Prawn, but if you want your PDF::Writer legacy code to work under 1.9, have a try at my Github fork of the project.