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.
Great TextMate tip: Speeding up Cmd-T
a great tip from Dr Nic on how to speed up Cmd-T in TextMate.
Switching Between Rails Versions
FiveRuns quick tip: frictionless switching between different Rails versions. Check it out here.
How-To Downgrade Rails to Older Version
Rails Tip of the Day: Use Magic Version Tag to “Downgrade” Rails to Older Version When Generating New Project
Time to git collaborating with git_remote_branch
I just released version 0.2.6 of git_remote_branch. It’s the same tool, plus new functionalities and a bunch of tests to back it up a bit. The basic idea for git_remote_branch is to trivialize interaction with remote branches.
How to set up Restful Authentication and acts_as_state_machine with Rails 2.1
The Faking Fanstastic blog has posted a tutorial on setting up Restful Authentication and acts_as_state_machine to work together. The blog addresses bugs encountered with the May 2008 release of RA, it demonstrates the new generators, and includes a quick front end set up to allow you to enjoy the fruits of you labor.
Juggernaut Part 2 - Connected Users List
In the second installment about Juggernaut, taelor of SlightlyCoded talks about how to Implement a Connected Users List for a Juggernaut Chat Room.
oembed_links to simplify oembed use
We’ve developed a gem called oembed_links to help ease oembed usage in a Rails app ( and elsewhere ). libxml_ruby, hpricot and rexml support, as well as Haml, Erubis and ERB template output support. (oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.)
Mack 0.6.1 Released
Mack 0.6.1.1 has been released. The release sports 38 new features and bug fixes. Included amongst the features are notifiers (email), RJS (jQuery and Prototype support), DataMapper 0.9.3 support, page caching, and a data factory for creating test data.
Get to your admin area during maintenance
Get to your admin area during maintenance - I recently had to modify nginx configuration to allow access to an admin url while an application was downed using cap deploy:web:disable. There’s a short write up here.
Juggernaut for the Win?
Juggernaut for the Win? - SlightlyCoded talks about The Juggernaut, a Push Server for Ruby on Rails. Techniques seen in this post were used to help create ShovelChat, a Web Chat Application for Digg Users. Part two will cover how to do a User list that gets updated a la push.
git deployment (tagging and branching) workflow
The Git workflow we use for tagging and branching when deploying to our staging and production clusters.
Rails Summit Latin America
Locaweb just opened up the registration website for the greatest Ruby on Rails event in Latin America: Rails Summit Latin America. In the next few days they’ll release the international version of the site. The event will take place on October 15th and 16th 2008. For more details go to the post Thanks to RubyLearning Sponsor Locaweb.
Prawn 0.1.0
The first alpha version of Prawn, a fast, nimble pure Ruby PDF generation library has been released.
has_markup plugin
Josh Nichols has created a plugin to easily validate markup on a model and optionally cache the output, making formatted content on your custom rails based blog that much easier to implement.
SlightlyCoded launches ShovelChat.com
Hey fellow Diggers! SlightlyCoded has just launched a new chat website for digg called ShovelChat. This site is powered using Ruby on Rails, Juggernaut, BackgrounDRB, and the Digg API.
Updating the Rubyflow site
Updating the Rubyflow site: I’m in the middle of making some changes to the source code of this site (thanks to github and peter). I have some questions for you all: [more inside]
Nonblocking ruby stack
Building the utlimate Ruby stack, EventMachine + Evented PostgreSQL + Fibers
Fibers Vs Threads
Ruby 1.9 Fibers are touted as light weight concurrency elements. Find out how they compare to threads in terms of creation time and memory usage.
deprec
Don’t like to do sys admin stuff - especially intial host server setup? Well if you’re on Slickhost or some other Ubuntu host, Chris Turner wrote some cool tutorials on using Mike Bailey’s deprec gem (well deprec2) for linux and windows. deprec is a collection of automated recipes for installing, configuring and controlling services on remote servers (built on capistrano). It’s original purpose was to automate the setup of production ready Ruby on Rails servers. This included everything from creating admin accounts, setting up your ssh keys to compiling and installing packages like mogrel/ngix on a freshly installed ubuntu server. Geoffrey Grosenbach has a free mini peepcode deprec screencast [mov] too.
FiveRuns Rails TakeFive Interview with Crunchbase Development Team
FiveRuns has posted the latest Rails TakeFive interview, this week with the CrunchBase development team: Henry Work, Mark McGranaghan, and Rob Olson. Check it out here.
Integrate Design Prototypes Into Rails Development
Here’s a method for integrating HTML design prototypes into your Rails development environment.
To Raise Or Not To Raise
Ever wondered when and when not to raise exceptions? This article should give you an idea when raising exceptions is a good idea an when you should avoid it. It does that by walking through a practical example (a method in the Rails i18n project).
Open Source Rails
Someone’s created a really good app for cataloging all the Open Source Rails apps out there.
A minimal CMS module for Ramaze
I wrote a minimal CMS module for Ramaze. It allows writing your static pages/partials as markdown or textile and automatically caches them.