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.
Running background jobs with Resque
Looking at how we’ve used Resque and Redis to run search jobs in our Rails apps.
Do You Understand Ruby’s Objects, Messages and Blocks?
Ed Howland de-constructs Ruby’s message protocol and looks into what is really going on behind the scenes in the guest blog post titled “Do You Understand Ruby’s Objects, Messages and Blocks?” on RubyLearning.
No Querying Views script
I just released a script called No Querying Views. Once installed within the config/initializers directory, it will raise an exception every time one will try to fetch data from the database within a view. I used it to replace ActionController::Base in favor of Michael Sofaer’s Vanna::Base, believing “that all web requests should operate as logical clients of a JSON API” (and it was not possible to move until the views were lazy loading data across the application).
Thinner (Varnish cache purging)
Thinner is a new ruby gem that purges Varnish cache over time. It’s useful for keeping your caches warm after deploys. Would love feedback and/or thoughts.
Radix will convert!
I just released Radix v2.0. The new version is a nearly-complete overhaul of the old version, with much improved and more intuitive support for base conversions via Radix::Integer, Radix::Float and Radix::Rational.
How Does One Use Design Patterns In Ruby?
Chee Yeo introduces you to Design Patterns in Ruby and how to use them in your own Ruby code. A guest blog post on RubyLearning.
What's new in Netzke 0.6
Rails 3 compatibility, Cucumber tests, much cleaner API and increased code readability. Presented at Ruby-and-Rails conf. Read the details.
Shorten HTML Formatted Text
A while ago I published AutoExcerpt, a gem to create shortened, valid, excerpts of html. Check it: AutoExcerpt
Rails Misapprehensions: Cells don't break MVC!
MVC doesn’t mean there has to be one monolithic controller to rule ‘em all! Some people seem to confuse that, in this post I’d like to clarify what MVC really is and how it should be used in Rails.
Capybara driver swapping on RSpec with Swinger
Introducing Swinger: a really simple extension that allows your Capybara to have multiple partners in one session.
Getting Started with jQuery Mobile & Rails 3
A Rails tutorial demonstrating basic CRUD actions for a single model using the new jQuery Mobile framework. Great for beginners! Link
adva-cms2 developer preview release made available
adva-cms2, the successor of the CMS adva-cms was released on Friday. [more inside]
Redmine 1.0.3 Released
A new stable version of Redmine has just been released. The Rubyforge servers are warmed up and ready to serve your download for one of the most popular Open Source Rails applications.
Redirect non-www requests the Rails3 way
The new Rails3 routing features allow you to do some cool new things. One of which is to redirect non WWW traffic to a canonical domain without having to create rack middleware or configure your web server. The lack of available server configuration on Heroku was an inspiration for this approach.
A queueing gem for Ruby on Rails based on DJ
A while a go I created a queueing gem for Ruby on Rails based on Delayed jobs called Runner. The github repo can be found here and a blog post about it can be found here
Last.fm API client
I’ve put together a simple wrapper for Last.fm API. Check it out on GitHub and let me know if I can improve it somehow.
Using Rake as a Build Tool
I wrote a blog post about kicking it old school and replacing make with rake.
DRY up your Rails views, man!
I wrote a real-world example why partials suck and how Cells kills the DoubleRenderError in Rails.
Savon 0.8.0.beta.1
Just released Savon 0.8.0.beta.1 which comes with lots of bugfixes and new features. Take a look at the new Guide and give it a try!
Getting OmniAuth To Work With Memcached
I ran into an issue when trying to get OmniAuth’s OpenID Strategy to work with memcached (so it can work on Heroku.) In case others are facing the same problem, here’s a solution I came up with.
Explaining Ruby On Rails Hosting
For a workshop on Rails hosting/deployment for a hosting company, I’ve created number or Sprinkle recipes to explain and install various stacks. If you are a consultant, teacher, evangelist or just curious, you may find some use for them. You’ll find the recipes in a Github repository, while some background can be found in an accompanying article.
Rails 3 Remote Links and Forms: A Definitive Guide
I couldn’t find any definitive guides on Rails 3 remote links and forms, which show a complete example from beginning to end, so I wrote one. [more inside]
Rails Misapprehensions: CRUD is not REST!
Here’s a short discussion about the differences between CRUD and REST and how it helps understanding REST if you separate these two concepts.