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.
SEO-friendly single-page apps
I just launched Jader - A Jade template engine for Rails that lets you share views between server and client (via JST). Perfect for SEO-friendly single-page apps.
Revolver - Like a fixed-size array with gimmicks
A Revolver is a fixed-sized LIFO data structure. I use this e.g. for keeping a list of the recent X actions in a web app.
Writing 'real' excel files with ruby and ruby on rails
axlsx has been out for a few months now. It has risen to the top of the crop of reporting tools on the rubytoolbox, nabbed a mentioned in ruby5, commented on in railscasts, twitted by a few of the core Japanese ruby and rails activists, and will be the subject of a LT at RubyKaigi in Sapporo this year - and it just now hit me…. rubyflow was left in the dark. Write real Office Open XML documents (xlsx) with charts, comments, styles and more - and validate it before you send it off to your clients. ::Real OOXML for real ruby devs::
Canard is now ORM agnostic.
David Butler has just added Mongoid support to Canard. Canard is yet another authorization rubygem. What sets Canard apart from the crowd is it builds on Ryan Bates’ battle tested CanCan, wraps it up with Martin Rehfeld’s RoleModel and makes authorization a first class citizen in your Rails app. Canard is now ORM agnostic and will work just as well in your non Rails apps.
Fear Of The Class: Fat Model Kills Your Software Design.
The first post quickly analyzes the problem of growing “model” classes in Rails project. As we tend to mix persistance and domain the post wants to encourage you to introduce new classes when your models get bloated.
Latinum is a framework for resource and currency calculations
I just found an interesting alternative to the money gem – latinum. It’s a framework for resource and currency calculations.
You shoulda let your shoulda let have let!
simple let for shoulda (without method generation magic)
Using Bundler as a Repository Manager
Bundler works great as a repository manager, even for non-Ruby projects. It’s a good alternative to using externals/submodules. via @JobVranish
Resque 1.22.0 Released
Terence Lee from Heroku has taken on maintaining Resque. He just released 1.22.0 which contains important signal handling fixes. To learn more read about signals in Resque on Terence’s blog.
Rails with Massive Data
Use Rails to process massive data, I think there are several things you should know. https://speakerdeck.com/u/xdite/p/rails-with-massive-data. From Ruby Tuesday #21 @ Taiwan.
Removing deadweight - cleaning up our Rails app
We spent all of last week clearing out the deadweight that’s accumulated in Scout: removing unused CSS rules, database tables + columns, views, and assets plus making our tests run faster. See how we approached it.
Capybara 2.0.0: Upgrade Guide
The Capybara 2.0.0 beta is out. I’ll show you how to upgrade.
DCI with Ruby Refinements
I just published an article on using Ruby refinements in DCI. I discuss some of the pros and cons of this technique as well as how it performs against more mainstream approaches.
rspec-xml 0.0.4 released
A lightweight collection of rspec matchers to make XML just a little less painful. Pull requests welcome! github
Testing a subclass in isolation
A series of short blog posts on testing a subclass in isolation in Ruby - why and how.
jruby-memcached 0.5.0 released
I just released jruby-memcached 0.5.0, it fixes increment/decrement issue, adds Memcached::ATimeoutOccurred error and exception_retry_limit. Check out more details here
Never slog through a blob of ActiveRecord objects again!
I just launched version 1.0 of table_print. It formats active record (and pure ruby) objects in tables for easy reading. You can even traverse associations to show child objects in the same table (eg, list users AND their orders). [more inside]
Doc Template, a Tool for Great Documentation
I put together a thorough documentation template on top of nanoc and would love feedback :)
Toward a More Egalitarian ObjectSpace
An article about a real-world use case for implementing object equality from the ActiveRecord and ARel source code, and a tiny gem that makes implementation less tedious for you, the boilerplate-hating Rubyist.
Awesome access control with Devise + rolify + Authority
If you want easy, flexible and powerful access control for your Rails app, consider the combo of Devise, rolify and Authority. [more inside]
HTTP Status Codes and RESTful API crafting
Latest post at The Frontier Group’s blog: HTTP Status Codes and RESTful API crafting.
dumb_delegator
I’ve been using dumb_delegator for a while so I decided to release v0.5.0.
PulseMeter: easy to use event tracking gem
I’d like to announce PulseMeter gem: easy to use client oriented event tracking toolbox. It allows to collect, aggregate and visualize various software metrics. Redis is its only infrastructure dependency; thus low resource consumption and high speed are achieved.
Ruby Nested Hash - Deep Fetch
It turns out that it is not that hard to implement the behaviour of fetch for fetching values (or returning a default) in nested hashes. Ruby Nested Hash - Deep Fetch - Returning a (Default) Value for a Key That Does Not Exist in a Nested Hash.