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.
The Future of Documentation
I recently posted my thoughts on where a much better form of documentation than Rdoc and Yard. Let your docs live with your codebase. I’d love to hear more thoughts on this idea! Specifically, what libraries that do NOT lend themselves to this style of documenting? Are there any patterns we can discover?
levenshtein-ffi - Fast C distance algorithm now on FFI
I just ported the levenshtein gem to run on ffi. The new gem is available at levenshtein-ffi, and works on all MRI rubies (1.8.6 - 1.9.2), and Rubinius. To install: gem install levenshtein-ffi
Which gems depend on your gem ?
gem-dependent will tell you!
How-to send email with a Google account form Ruby On Rails
I just write a post about How-to send email with a Google account form Ruby On Rails: a working solution.
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!