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.
Simple Resque lets you send Resque jobs from one codebase to another
simple_resque abstracts a pattern that’s become very common in my recent projects. Unlike the usual Resque setup, I never put the workers in the same codebase as the web app, which required some hacks. This gem provides a thin wrapper over Resque’s push method to mimick the way Resque.enqueue works, but doesn’t require you to use a class constant.
Testing File Downloads with Capybara and ChromeDriver
At Collective Idea, we ♥ Cucumber, Capybara and ChromeDriver… and alliteration. But we recently encountered an issue with a very Ajaxy Rails app where we need to test a file download and assert its content. See how we did it!
Who is the Greatest? Using the Neography Gem to measure Centrality
Muhammad Ali and the Beatles battle it out in a Neo4j database.
Enumerize: Enumerated attributes with I18n and ActiveRecord support
Have you always wanted to use enumerated attributes in your ActiveRecord models? There is a easy way to do it now! Behold - enumerize
Compilation of Ruby and Ruby on Rails learning resources
I compiled a list of resources for learning Ruby and Ruby on Rails. In this list there is material I read/listened/watched since I started programming in Ruby. It can be helpful for those starting in Ruby as well as those willing to find out new things around the community.
todo.rb command line todo manager with colors + ed commands
todo.rb resembles a lot of command line todo list programs. But it delegates to ed to perform list manipulation. It also lets you customize task tag colors.
Command Line Reporter 2.1 Released
The latest version of Command Line Reporter now supports suppressing of output so that scripts can support a --quiet flag. The gem is available on rubygems.org with source on github. For those not familiar with Command Line Reporter, the gem provides a ruby DSL for writing ascii reports with built in features like progress reporting and table formatting. It is very handy for system level and data reporting scripts.
Ruby Rogues 039 - Programming Language Fundamentals
This week The Ruby Rogues discuss teaching and learning programming languages, the ‘Rogues’ first languages and more.
Rails Server Running Multiple Ruby Versions
I recently set up a new Rails production server based on Ubuntu 10.04, Nginx, Unicorn and rbenv. A few of my Rails applications is still running on Ruby 1.8.7 so the web server must handle multiple ruby versions. [more inside]
Tork - test with fork
I recently launched Tork for efficient continuous Ruby/Rails/Cucumber testing.
Monkey patch for CanCan 1.6.7 to replace MetaWhere with Squeel
Since MetaWhere is not compatible with Rails 3.1/3.2 and we are now directed to use Squeel instead, and I needed to use CanCan MetaWhere depending functionality, I made this gist that replaces MetaWhere with Squeel in CanCan 1.6.7 . Now one can write: [more inside]
I just launched some groovy thing and ya...
I just launched some groovy thing and yada yada.
Deploying Rails 3.2 with Ruby 1.9.3 on Heroku
Heroku offers Ruby 1.9.2 as a default with its newest stack. But did you know you can use Ruby 1.9.3 (Ruby’s current recommended stable release)? Here’s how to set up an app with Rails 3.2 and Ruby 1.9.3 on Heroku. See Deploying Rails 3.2 with Ruby 1.9.3 on Heroku.
Guide to Installing Rails 3.2
Detailed instructions (with advice) on how to install the latest release of Rails 3.2. See a Guide to Installing Rails 3.2.
Rails v3.2.1 has been released (with minor fixes)
Rails v3.2.1 has been released to provide minor fixes to the previous release. See the Ruby on Rails v3.2.1 Changelogs.
Upgrading to Rails 3.2.0 from Rails 3.1.3
I just wrote a small how-to about upgrading to Rails 3.2.0 from Rails 3.1.3. It’s not so hard as I thought it’d be and new Rails bring us some cool new features. Enjoy :)
test_engine - A library to make it easy to test engines.
Rail’s engines can be a bit of a pain to write tests for. Since they don’t run in the full Rails stack it requires a bit of pain to setup anything but the most basic testing. test_engine solves this problem by making it almost as easy to write tests in your engine as it is to write tests in your Rails app. If you have been holding out on testing your engines because you don’t know a good way to implement it maybe this is your ticket to get back on track.
How to insert more Disqus comments box in a single page
I wrote a post about how to insert more Disqus comments box in a single page using Ruby on Rails, an iframe and jQuery to dinamically load the comments box.
Can You Write the Fastest and/or Shortest Ruby Code?
therubygame, a good site to learn some ruby trick. You can participate to test your skill or just watch other peoples code and learn some new trick. The task this week, Roman numerals. What are they good IV?.
New RubyStack upgraded to Rails 3.2.0
We have just released a new version of BitNami Rubystack that supports Rails 3.2.0. BitNami RubyStack is an easy one-click installer for Windows, OS X and Linux. It is self-contained and independent so you can install it without modifying your system. You can also download Virtual Appliances or run the Cloud Images in Amazon AWS. [more inside]
Setting the Database Free with ActiveRecord's Connection API
I posted an article on the ActiveRecord Connection API, the low-level API that I’ve been using more and more to interact with the database’s advanced features.
Ruby driver released for Factual's data platform
Factual has released an open source officially supported Ruby driver for their data platform. It supports all the main features of their growing data ecosystem, including geolocation queries against their curated Places data.
Preventing "Double Validations"
Have you ever needed multiple validations on one field (I bet you did!) but didn’t like multiple error messages showing up at the same time? Read my blog post to see how you can prevent it.
Resque with EventMachine
If you have to process a large amount of external http requests bound by database access, maybe the em-resque gem we’ve just created could be useful for you. You can get more information in related article about it.