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.
jClassy: Class system in JavaScript
See jclassy.org for a JavaScript class-system core inspired by the Ruby object model.
The Rotten Pirate: A fully automated movie downloader
The Rotten Pirate pulls new DVD releases from Rotten Tomatoes, filters them, and downloads the highest “scoring” torrents from The Pirate Bay. It even analyzes the torrents comments for video quality! [more inside]
Monitor methods added to classes/modules with watch_methods
watch_methods lets you watch when methods are defined with regexes, symbols, arrays and more. This is useful when you are creating a gem that is expecting methods to be defined, or to use your macro style methods that mention methods before they are defined (think Rails callbacks, validators etc).
Remotely: API Backed Models.
Remotely lets you create models backed by an API. That way you’re working with real objects that represent the data you receive from an outside source. They can have associations, attributes and behaviors like any other object. It beats passing around hashes everywhere.
rails_best_practices 1.3.0 released
I just launched rails_best_practices 1.3.0, it adds new option –with-git to display git commit and git author in html format and enable RemoveUnusedMethodsInModelsCheck by default, check out the changelogs here.
Getting familiar with Jasmine, Backbone and CoffeeScript in our Rails app
We BDD our way into recreating the Todos.js application by Jérôme Gravel-Niquet with these 3 videos: [more inside]
Solution to Ruby 1.9.3 segfaulting when using TextMate Ruby Bundle
After upgrading to Ruby 1.9.3-p0 I found that any exception in Ruby resulted in Ruby segfaulting on the TextMate Ruby bundle output screen. I found this gist where people were discussing the error and have some tips inside this RubyFlow post for you to fix the error yourself. [more inside]
FastSpring-Saasy 0.3.1 Gem Released
I’ve recently been working on a Ruby gem for the FastSpring Saasy (Subscription Management) API. Source is available over at Github all feedback welcome and encouraged.
RBzip2 v0.2.0: Now with 100% better compression
Ok, with any compression at all. That said, you can now use the gem to compress and decompress arbitrary data using bzip2. [more inside]
Yet another Mongoid::Orderable gem.
Hi there! I’ve published new Mongoid::Orderable gem. It uses batch mongoid $inc and proper assigns position while moving between scopes. I hope you’ll like it.
Aspector 0.5.0 is released
I just released Aspector 0.5.0. Aspector means Aspect Oriented Ruby programming. It is a rewrite of my other gem - Aspect4r. Please feel free to take a look at both and let me know your comments or suggestions.
Clean your controller and model with gon+rabl
Introducing gon gem. From the beginning it was just a funny gem which allowed to throw controller variables to js global namespace without data attributes in view. Now integrated with rabl it’s really useful tool making getting JS start data for your application easy.
Announcing RailSide : a native OS X Rails Editor
I am pleased to announce RailSide, a native Ruby on Rails Editor for OS X. [more inside]
Use git.io in your Ruby code.
Do you want to use the Github url shorten service in your Ruby code? Here you are.
Videos of Matz's keynote and competition pitches
Videos of Matz and Derek Collison’s keynotes, and Silicon Valley contest pitches are now availabale on the following site. Fukuoka Ruby Night [more inside]
Deploying Rails 3.1 Applications to Engine Yard Cloud
Check out Michael Latta’s post about Deploying Rails 3.1 Apps on Engine Yard Cloud!
rolify 2.0 - Role management library with resource scoping
If you are developing a Rails 3.1 project and look for a Role management library that you could plug with Devise and CanCan, then you should consider rolify. Version 2.0 includes performance improvement, initializer code cleaned up, spec coverage enhancement, opinionated defaults and support for many different rubies (1.8/1.9, REE, Rubinius and JRuby). Currently it works only with for ActiveRecord but there are plans to support Mongoid in a not too near future. [more inside]
Optimize deploy time compiling your assets locally
Asset pipeline rocks, but compress javascript, specially if you have large files (i.e: a WYSIWYG), can be a pain for your server. We explain in this post how we have solved the problem, by precompiling in local before deploying.
Setup GitLab (Github clone) using Vagrant and Chef
This is 2nd part of the series Rails app with distributed deployment playground. In this part, we’ll setup Gitlab as Github clone using vagrant and chef-solo
Rails app with distributed deployment playground
A 3 part series on setting up Rails app deployment in your local workstation using different components. Here goes: Rails app with distributed deployment playground.
Twitter's Bootstrap on Rails
Twitter’s Bootstrap CSS toolkit makes your webapp look pretty. I wrote about how to use it with Rails 3.1.
Use Live Reload with Rails for Faster Development
In this post I go over how to setup LiveReload to work with Rails. LiveReload automatically reloads the page when you change your code. So it’s saving you from having to hit refresh [more inside]
Making a Text Adventure Game in Ruby - A 7 Part Series
You’re standing in a green meadow. You’re holding a bonesaw, a vacuum cleaner and a very angry cat. Across the meadow you see a small white house. What do you want to do? Everyone likes text adventure games, why not write them in Ruby?
Rack middleware for knowing which version you deployed
I just released rack-git-version, a simple Rack middleware that lets you know which version is deployed by adding your the current git tag or ref to your HTTP headers.