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.
Concerned about Code Reuse?
If you’re concerned about code reuse in Ruby you should be using Active Support concerns to awesome-ize your modules. Learn why and how in this quick article.
Roar 0.10 with JSON-HAL Support and Representable 1.1.6 Released
Roar 0.10 got support for HAL+JSON, a new promising hypermedia REST format. Representable 1.1.6 got the :if option for conditional representing properties. Read it here.
[Screencast] Creating an ASCII progress spinner
Free screencast shows how to display a Command line progress spinner that runs in a background thread.
Learning Grails - A beginners guide for the Rails developer
I have started working on a book called “Learning Grails - A beginners guide for the Rails developer” http://leanpub.com/learninggrails). Rapid MVC development strongly influenced by Rails.
mruby, write iOS & Android apps in Ruby thanks to mruby
Appcelerator Titanium employee Yuichiro MASUI announced mobiruby. For a review of MobiRuby check out this blog post.
mruby, Matz' new Ruby implementation is now on GitHub
Matz and his team released mruby source code on GitHub. For more details on what mruby is, check out this blog post.
My take on mruby and MobiRuby
Many people asked me what I thought of the announcement of Matz’s new Ruby implementation and the first real life use of it: MobiRuby, allowing Ruby developers to write iOS apps. Here is my take on these two projects.
Devise, CanCan and Twitter Bootstrap for Rails: Tutorial and Example App
Just added to the RailsApps GitHub repo: an example app for Rails, Twitter Bootstrap, Devise, and CanCan. Twitter Bootstrap is coming on strong as a front-end framework to use with Rails; Devise continues to be popular for user management and authentication; and CanCan is a favorite for authorization architecture. This example app puts them together. Best of all, it comes with a detailed Rails Tutorial for Devise with CanCan and Twitter Bootstrap. The tutorial takes up where the popular RailsApps tutorial for Devise with RSpec and Cucumber leaves off. Like the other example apps in the RailsApps repo, this one comes with an application template to generate a starter app, with options for Haml, Devise modules, and more. Built with the Rails Apps Composer gem.
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. [more inside]
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: [more inside]
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.