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.
Javascript + DOM in your ruby
The day has finally arrived where you can run a browser-less javascript + DOM environment from within Ruby. Harmony offers a convenient DSL that allows you to get started simply and easily. There is even a Rails plugin (holygrail) for functional tests. You can now leverage the power of the command line to do with JS what once required a browser.
/Reg/ against your machine
Pleased to report the grand release of a small command-line tool, regex, which makes for some pretty dirt-simple utilization of Ruby’s regular expression engine via the command shell. It can do single or repeat matches and output can be in plain text, YAML or JSON formats. Still pretty fresh off the block, but it’ll beef up in capabilities over time.
Happy Birthday Devise
Devise (a full authentication stack for Rails) reaches 1.0 after four months since its first release! Carlos describes in this post all features that were added along the way: authentication, HTTP Basic authentication, token authentication, registration, analytics, timeout, account locking, account confirmation, forgot password and many others, thanks to Devise modular architecture which allows you to pick just what you want.
Kansas City Ruby User Group presentation: Kyle Ginivan on Progressive Enhancement
Kansas City Ruby User Group’s February presentation by Kyle Ginivan on progressive enhancement, a strategy to make your webpages accessible and cross-device/platform.
Ruby on Rails Example for Tropo Web API without port forwarding using Tunnlr
Zhao Lu (aka @zlu) has shared a tutorial he has done using Ruby on Rails and the recently released Tropo Web API. The tutorial shows how to add, or build, the Tropo features to your Rails application in 15 minutes using REST/JSON API. All of this deployed to Heroku for easy application deployment. Then he goes on to show how to use Tunnlr with Rails to punch through firewalls without port forwarding…
Monitoring Delayed Job with Bluepill and Capistrano
Hugo Baraúna from PlataformaTec shows on this post how to get Bluepill (an alternative to God) monitoring your Delayed Job process deployed with Capistrano.
In-memory CouchDB implementation for speeding up your tests
We are using CouchDB as our main datastore and with our growing test suite, I was looking for a way to speed it up. I wanted to make the tests faster without introducing mocks everywhere or having to change the already written tests. What I ended up doing is writing an in-memory CouchDB implementation in Ruby: RockingChair. It is basically just a big hash with a CouchRest HTTPAdapter. Apart from the simple document API (store, retrieve, and delete object) it also supports CouchPotato and SimplyStored views. Checkout RockingChair on github.
Synchronizing Core Data With Rails (3.0.0.pre)
Lessons learned from building HomeMarks native iPhone application to synchronize Core Data with a RESTful backend built using rails 3.0.0.pre. This covers a previous design methodology called the AJAX head pattern which decouples rails applications from the views they present which allowed an easy API foundation for the iPhone application and data sync methods.
Easy version management for Rails apps using VersionMaster and Capistrano
VersionMaster - a plugin to manage version numbers (eg. “v1.0.8” etc) for Rails apps and having it automatically update whenever a new release is deployed using Capistrano.
EuRuKo 2010 calls for speakers
EuRuKo (this year in Krakow, Poland, on weekend 29-30th May) just started a call for speakers. Check out the official website and submit your talk proposal. Or, at the very least, mark your calendar and get ready for opening the registration. In order to stay up-to-date make sure you somehow follow the official EuRuKo Twitter.
Rubytu.be now indexing 500+ Ruby related videos and screencasts
After launching Rubytu.be a short 8 months ago, it’s now indexing over 500 videos, covering almost every topic a Rubyist could need. Thank you to the community for your contributions! I’m also opening up to some advertising. Please feel free to e-mail me, rates are cheap and space is available on the homepage and in the RSS feed!
Getting familiar with Rails 3
I tried to upgrade my ongoing development to Rails 3. We still have issues with this, but it’s promising. Here’re my experiences so far.
Announcing Ripple
Introducing Ripple, my Ruby library for Riak, Basho Technologies’ distributed database. gem install ripple
to get started!
Bet you never thought...
So our intern just started writing some Factories for some test cases. This is what he came up with.
Quick and easy Static Pages in Rails
A quick guide showing you how to add common static pages to a Rails app in 60 seconds or less
[ANN] RubyOnRails Training in London, UK
I will be presenting a number of Ruby and RubyOnRails courses in London which will run over consecutive days. If both are taken there is a 10% discount.
Making Paperclip work with Sinatra & Datamapper
Brief explanation on how to upload files using Paperclip using DataMapper and Sinatra. Check it out here
New 'Ruby Quicktips' blog
I just launched Ruby Quicktips. This blog is dedicated to deliver short, interesting and practical tidbits of the Ruby language and Ruby on Rails framework. Your submissions are very appreciated! http://rubyquicktips.tumblr.com/
Writing contingent Ruby with #retryable
I recently blogged about how to add sugary syntax to re-performing a chunk of code n times. I needed it to ensure that i could rescue from a specific exception (in my case a timeout error when connecting to a socket). Check out the post to see how.
[ANN] Ruby Metaprogramming Course – Start Thinking in Ruby
RubyLearning has just announced the third batch of the Ruby Metaprogramming Course from 6th March 2010. Early Bird Discounts offered. You will find author of “Metaprogramming Ruby” book Paolo Perrotta, lurking in the course forum!
Paginating documents with couchrest & will_paginate
Paginating documents from CouchDB with couchrest & will_paginate explain in this blog post, and it is not as difficult as you might imagine.
Rad DCI Architecture Talk
I recently popped off a quick blog post about an awesome lecture on the concept of DCI architecture that I’ve been watching. This looks very promising and I’m guessing other Rubyists will be interested too. Check out my comments and jump from there to the video.
LazyGem 0.0.2 released - Feedback request
I just launched LazyGem 0.0.2, this update features OS detection. Please provide any feedback possible. Thanks.
Model Specific Formatted Search Results Using Thinking Sphinx
With Thinking Sphinx, it’s easy to have a bunch of different classes returned in the results. The tougher part is displaying them in a way that is organized. Here is a quick tutorial on how to display your results in a model specific fashion.