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.
SerializableProc
I’ve just released SerializableProc, which differs from the vanilla Proc in 2 main areas, checkout the project’s readme for more details. Cheers !!
Use STI and polymorphic model for multiple uploads
I wrote an article Use STI and polymorphic model for multiple uploads, it provides a flexible and reusable solution for multiple uploads by using paperclip.
Amazon Simple Queing Service (SQS) using Ruby
Amazon Simple Queue Service (Amazon SQS) is a distributed queue messaging service. The idea of SQS is to remove the direct associations between producer and consumer and act as mediator between them.Ruby libraries like right-aws,sqs etc.helps to achieve using SQS. To know more about how it is implemented visit SQS using Ruby.
Rails 3 Example App with Subdomains and Devise
(with a detailed walk-through tutorial) that shows how to set up subdomains in Rails 3 using Devise for authentication: [more inside]
Updating Class Table Inheritance Tables
Some code/blog post showing a neat way of updating CTI tables in Rails
Book review - Web Operations
For folks doing devops - here’s a book review of Web Operations.
Why Ruby on Rails is awesome? 2/2 (French)
Discover why Ruby on Rails is awesome with a technical point of view.
React - Redis based remote command executor.
I just released react gem. React is a simple application that allows for remote command execution, and it uses Redis as a queue.
Create Domain Specific Languages (DSLs) Easily
I’ve just released dsl, a friendly way to create DSLs within blocks and objects.
Tapping into Distributed Erlang from Rails
My company, NabeWise, uses BERTRPC and Erlang to run backend services for our Rails app. This is how we do it:
Improve IRB (and fix it on Max OS X)
A few tips / reminders to improve IRB : . There’s also an issue with reverse-search on Mac OS X fixed in this post.
rails_best_practices 0.4.0 released
I have released rails_best_practices 0.4.0, rails_best_practices is a code metric tool for rails codes, from 0.4.0, it can check the rails3 codes better. In addition, if you want to add your rails best practices into the gem, please post your best practices on http://rails-bestpractices.com
Rails Test Prescriptions Beta 6
Rails Test Prescriptions Beta 6 is now available from Pragmatic. The book is also available for pre-order from Amazon. [more inside]
Bundler, because your gems depend on gems too
Bundler made gem dependencies in Rails projects a lot easier, but what about gems themselves? In this article I show you how Bundler makes managing your gem’s gem dependencies a breeze.
Easy Tasks with RTask
An Introduction to RTask, a simple task library, similar to rake or thor. RTask wraps your tasks into a class, with a simple DSL to allow for easy creation of task. Tasks are namespaced via modules and classes. Read Full Post
Why Ruby on Rails is awesome? (French)
Discover why Ruby on Rails is awesome with a non-technical point of view. by Camille Roux @ SophiaConf 2010
RTask, a simple task library similar to rake and thor, v 0.1.7 released
RTask, a simple task library similar to rake and thor Clone on Github Gem page
New gem for taking money with Sage Pay
I’ve just released the latest version of a gem I built for interacting with Sage Pay, one of the UK’s least unpopular payment providers. It’s been in production for a couple of months now, so I’m happy to claim it works. There’s no home page to point you to, but you can grab the source from GitHub or install it from your favourite gem source. The gem implements the full SagePay server protocol, including deferred payments, repeat payments and refunds.
Fixtures v. Factories – Can’t We All Just Get Along?
Why not use both fixtures and factories to make your testing in Rails easier?
Introducing CoverMe - RCov-esque code co...
Introducing CoverMe - RCov-esque code coverage for Ruby 1.9.
Use multipart/alternative as content_type of email
I wrote an article about using multipart/alternative as content_type of email. Rails uses plain/text as the default content_type for sending email, you should change it to multipart/alternative that email clients can display html formatted email if they support and display plain text email if they don’t support html format. Check it here.
rufus-json
rufus-json is a ruby gem that lets you choose your JSON {en de}coding backend. It has a preference for yajl-ruby, but is happy with json, json-pure and active-support.
Eager loading class table inheritance
A quick tip for eager loading class table inheritance in rails