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.
The Coffeescript Fat Arrow and Classes
I’ve hacked together some somewhat long-winded descriptions of the Coffeescript ‘fat arrow’ and how it’s used with classes. Hope these are useful to someone.
Speed up your app with Method Cacheable
Method Cacheable allows you to cache any Ruby method easily in memcache. It makes calls to the cache in your code explicit so you know whats going on at all times.
rails-footnotes 3.7.8 has been released
I just released rails-footnotes version 3.7.8. - Regexp based assigns note ignoring has been added
Redis Props - Easy annotation of ActiveRecord objects with properties stored in Redis
The company i intern at DueProps, just released a library called redis_props extracted from our codebase that’s perfect for adding attributes to your models that you won’t have to worry about querying or reporting on later. Such as flags, preferences, settings and so on. Read more
A complete tutorial for Rails app using ...
Oops. The author of this tutorial asked me to pull this down until he polishes it up a little more. Will re-post when it’s ready…
Enki Engine 0.0.2 released: A mountable blogging engine based on Enki
I just launched Enki Engine a mountable blogging engine based on Xavier Shay’s Enki. Enki Engine is made to be embedded in your host Rails3 application and customised wantonly.
Ruby on Rails: Helping the CX Cloud Run Smoothly
Here at the CX cloud (get your first 10GB free!), we love Ruby on Rails for its adaptability within our service. Check out our blog on why we use it in our cloud storage here: https://blog.cx.com/cloud-storage-news/ruby-on-rails/
Don't write boring code
If you think testing slows you down, your code is boring.
Rails Internals: Active Model Observers
New article in the Rails internal series: Read more
Plugin as mountable engine
I have written a blog related to creating a plugin as mountable engine in rails 3.1 and higher version. Check this Creating Plugin as mountable engine in Rails 3.1 and higher version
Sadie, Olsen - Data gathering and reporting
I’ve released a couple of data-gathering and reporting gems: Sadie and Olsen. Sadie makes it easy to assemble data from various databases, network locations, files and other sources. It has some nice facilities for managing memory usage, session storage, and optimal and/or minimal execution. Olsen, a simple reporter, builds on Sadie to form a framework for reporting and analysis. It currently uses the TeX typesetting system to produce pdfs, but it is completely pluggable and can be easily extended to produce a number of different outputs.
Gon gem version 3.0.0 is out
I just finished refactoring and updating of my gon gem and now it can rock from any part of your application with Gon.global feature.
Partial Validation of Active Record Objects
Ever want to save, just part of an object? You can with partial validation. This example uses Wicked a gem for making step by step wizards, and shows you how to build objects piece by piece and validate every step of the way
Visualizing a Network in 3D with the Sinatra, Gon and Neography gems
When 2D is not enough go full 3D in the browser with Three.js.
Redis Failover for Ruby based on ZooKeeper
I just launched redis_failover for Ruby. It’s a full redis failover solution based on ZooKeeper that consists of a Node Manager and a failover client. A redis failover Node Manager daemon runs as a background process and monitors all of your configured master/slave nodes. The client also acts as a load balancer in that it will automatically dispatch Redis read operations to one of N slaves, and Redis write operations to the master. If it fails to communicate with any node, it will go back and fetch the current list of available servers, and then optionally retry the operation.
Authority 1.0.0 released: powerful, simple Rails authorization
Rails authorization just got simpler: Authority 1.0.0 is released! It’s ORM-neutral, super-flexible, and has no confusing syntax to learn; all your logic goes in one or more Ruby classes called “authorizers”. Plentiful testing and documentation awaits your perusal.
human_attribute for easy rails attribute i18n
I just launched human_attribute gem for rails attribute translation. Read more
The 10 Most Underused ActiveRecord::Relation Methods
Knee-deep in ActiveRecord::Relation code yesterday, I was reminded of some interesting nuggets that I have seen used far too rarely. Here, I’ve gathered my top ten most underused relation methods from that list for your reading delight. Read more
RConfig 0.4.0 Released
I just released RConfig 0.4.0. It’s been updated to support Rails 3.x, as well as Ruby 1.9+. It also has new features like reference support for xml and properties files, as well as a ton of bug fixes! I welcome any and all feedback and suggestions. Please report any bugs as well.
Using Backbone Views With Rails jQuery-ujs
No Ruby code but useful for Rails applications
Automate tmux for quicker coding in vim
A short blog post with video (thanks to shelr.tv) showing how to script tmux to start your Rails development environment.
Rails Observer Implementation Part 2
Rails Observer Implementation Part 2.
Grouping validations
I just published a new post about grouping validations.
rails-footnotes 3.7.7 has been released
I just realised rails-footnotes-3.7.7