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.
Rubygems: too many connection resets
Trying to push a gem to Rubygems and you get “too many connection resets”!? Here is the fix for the problem.
A review of The RSpec Book
I just published a review of The RSpec Book.
Minimal compass integration for Rails 3.1
I just wrote this post Minimal compass integration for Rails 3.1
The main information about Procs, lambdas and closure that you must know.
We are all use blocks in our ruby programs, but what if we`d like to store somewhere or pass anonymous code to some method? Here is information about it.
Testing Your Code's Text
Write rake tasks that grep your application code for common problems. [more inside]
Example Apps for Rails 3.1
Examples (with walk-through tutorials) for Rails 3.1 using Devise (authentication), OmniAuth (authentication), RSpec, Cucumber (BDD), Mongoid (NoSQL datastore). Useful as starter apps or reference implementations. [more inside]
A Guide to Installing Rails 3.1
Detailed instructions on how to install Rails 3.1 with advice and troubleshooting tips: [more inside]
I ran bundle update.... looks like rails 3.1.0 is released!!!
I have not seen any posts online about this yet but it looks like we have a new Rails release. CONGRATS to everyone that contributed!!!
ActiveConfiguration: A Generic Settings Store for ActiveRecord Models
I just released ActiveConfiguration, a generic settings store for ActiveRecord models.
Fech: Ruby Parser for Presidential Campaign Filings
My colleagues and I at The New York Times just released Fech, a gem for parsing presidential campaign finance reports. Use it to access summary and itemized data from candidate filings. Works with Ruby 1.8.7 and 1.9.2.
linode w/ ubuntu + rbenv + lxc-ready kernel
I wrote a blog with some instructions and a stackscript for getting an Ubuntu 11.04 linode booted up with rbenv and swapping out the linode kernel for the stock Ubuntu one so the VM can support LXC containers
Defeault Attributes on ActiveRecord Associations
A quick tip on how you can easily define default attributes on ActiveRecord Associations.
AliasGenerator & FlickrSetTag - Jekyll Plugins
I’ve just released a couple of Jekyll plugins. [more inside]
Custom pre processor in rails 3.1
In Rails 3.1 it is easy to add Custom pre processor like js.coffee.mustache.More info you can found here
queue_classic 1.0.0rc1
Don’t be fooled, this is a real release candidate! queue_classic [more inside]
Validate XML against XSD(Schema) in Ruby
I write a little post about validate XML against XSD with Nokogiri
Provisioning Servers with Sprinkle
Wrote up a detailed blog post explaining how to use Sprinkle to automate server provisioning and configuration. If you have a Rails application, and use Capistrano for deployment, then this will be especially relevant. Sprinkle is built right on Capistrano, has a lot of pre-made recipes and is extremely easy to setup and use. More importantly, unlike many other “simpler” solutions, Sprinkle recipes are idempotent, repeatable, and do not require prerequisites on the target server.
Challenge: create a key/value storage backend in Ruby
This week, Codebrawl is challenging you to create a key/value storage backend in pure Ruby. Think you’ve got what it takes? Give it a shot and you might even win the prize!
Multiple files upload with carrierwave and nested_form
I just published a tiny post about Multiple files upload with carrierwave and nested_form.
Optimize Early!!!
I constantly hear developers say “Don’t optimize too early”. I say make it easy for yourself to optimize early.
Lolize: Colorize your Ruby output with rainbow
I just made a fun project named lolize. It can colorize your Ruby standard output with rainbow :D The algorithm is based on lolcat. Hope you like it.
Termistat : a status bar for your terminal
Ever want to display progress for a long-running process but keep your verbose output too? Check out Termistat, a status bar for your terminal.
rubygems-pwn: A Vulnerability in RubyGems (currently being fixed)
If you’ve seen people saying to run gem install rubygems-pwn on Twitter (which I don’t advise!), it’s because it’s a proof of concept for a vulnerabilty in RubyGems. The rubygems-pwn project on GitHub has more information about it, but essentially you can push arbitrary Ruby code into gemspec parameters which will then be executed later on. The vulnerability has been discussed in the rubygems repo where a fix has already been made but, hopefully, more general fixes should be made available soon. (If you want to see the direct example of a malicious gemspec, look here.) [more inside]
Testing a Rails 3.1 Engine's Javascript with Jasmine
At work, we just upgraded a Rails engine to use the Rails 3.1 asset pipeline. Getting our Jasmine tests to run in the engine’s dummy app wasn’t easy. Here’s the solution we came up with.