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.
rack-pygmentize
Howdy, I just released rack-pygmentize, it’s all about colourfying and awesomifying your code blocks in the middleware stack so you can just add the middleware and forget about it
Capybara roundup
I wrote up a summary of recent changes in and around Capybara.
Testing Rails 3 controller with Rack
A few words about testing Rails 3 controllers in full isolation, using Rack.
Keep Controllers Organized: The Shared Helper Method
I just launched an article that explains a method to keep your controllers organized. I’d really like to know how do you do the same thing!
Ruby beats Haskell (sometimes)
I just posted an article about why choosing the right algorithm choosing the right algorithm is usually more important that choosing the right programming language.
Translations management engine, with support for Redis and MongoDB
Inspired by recent railscasts episode, I just made a few changes to my translations engine, which was re-born with new home and name, with support for Redis, MongoDB and nicer UI out of the box. Testers and comments needed!
Sorcery v0.2.0 released - Twitter, Facebook, tutorials in wiki
Sorcery is my authentication gem, which is in the works for 2 months now. It’s main goal is to give an easy API for building custom authentication flows. This is version 0.2.0 of the gem which adds support for OAuth (currently twitter & facebook). [more inside]
Rails one-liner to get URLs from rake routes
Rake routes is a little wordy to send to someone who needs a list of the URLs your Rails app uses. So I created a bash one-liner to make my life easier.
Continuous deployment with whiskey_disk
Continuous deployment rocks. Whiskey_disk makes it super easy. Here’s how to set it up on your servers.
Try this ror app to catch your app errors in production, for ror and php
errorapp
Implementing an ActionView::Resolver in Rails 3
I had trouble finding an example of a Rails 3 view resolver the other day, so I wrote up a post with a sample implementation.
Reduce Paperclip Image sizes and Page Load times!!!
My company noticed the images paperclip created were not optimized. We Optimized the images with a paperclip post-processor and we reduced some of our image sizes by 85% without and visual problems. This has been a huge win for us. Check it out.
Some cool uses of Git-like hashes in Ruby (with Gibbler)
Cryptographic hashes neatly solve a lot of problems. I created Gibbler to make it easy to work with them in Ruby and wrote a bit about how I use it.
Generating SHTML with middleman
I just wrote about Generating SHTML with middleman
Building a Simple AJAX Website with Sinatra & jQuery (6 minutes)
We’ve just released the Building a Simple AJAX Website with Sinatra & jQuery screencast. To mark AJAX’s birthday on 18th March, we’ve put together a screencast to show you how to create your very own AJAX-updating countdown website for the big day. We use Sinatra and jQuery. We show you how to query Sinatra’s request object to disable layouts for XHR requests. Check it out.
OmniAuth 0.2.0 Released
Version 0.2.0 of the popular OmniAuth gem was released today, bringing a bevy of changes and new providers out of beta. For more info see the CHANGELOG.
Custom Captcha Questions
I just released a gem to include custom captcha questions in your Rails application: Gotcha on Github
Tuning Mysql/innodb with Rails
Ever deploy a rails application that seemed slow once it had real data in it? Ever tweak a few things in your my.cnf and it perked things up, but really didn’t know what the correct values should be? My blog entry on 4 Mysql settings you should tune and how to tune them might be just the performance prescription you need.
Previous week I launched a web page, htt...
Previous week I launched a web page, , which describes the Ruby object model, as of Ruby 1.9.
RMU Study Hall #2
Over at Ruby Mendicant University, we’re holding a second series of free mentoring sessions between beginner level Ruby programmers and volunteers from our alumni network. If you could use some help in your Ruby studies and can find some time for a 45 minute meeting with one of our mentors between 3/14 and 3/18, please feel free to sign up for a session.
Chuusha 0.2.0: Erb templates for css and js
I just released Chuusha 0.2.0, which allows you to run JavaScript and CSS templates through ERB. It plays nicely with Rails’s asset caching as well.
An init script for managing delayed_job
If you run delayed_job as a daemon on a server, you’d probably like to have an init script for automatically starting it at bootup time. Let me share with you my init script for accomplishing this – and it’s even RVM-friendly!
Data.js 0.2.0 released
I just released Data.js 0.2.0. It’s data manipulation and persistence for Javascript.
Redis Master/Slave with Ruby
Looking to distribute your Redis load? [more inside]