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.
wisepdf – wkhtmltopdf done right
After a couple of weeks spent with WickedPDF and PDFKit I understood, that I can make something better. And it is called wisepdf! [more inside]
Decoupling Persistence from your Domain
A method for using either inheritance (with naming conventions) or mixins to segregate persistence concerns from your domain models. README / example code on github here. Blog post / comments here.
Wiserespond - one more way to make your controllers DRY
Just crafted small Gem to make your controllers even more DRYer and extremely easy to understand. [more inside]
TubeHub: Synchronized Youtube Playlist with thin-websocket
A while ago i wrote a synchronized Youtube playlist (a la synchtube clone) in ruby using thin-websocket, sinatra, and activerecord. Recently i decided to open source it. [more inside]
Gitara - A Ruby DSL for generating Lilypond guitar tablatures
Gitara is a Ruby DSL for generating Lilypond guitar tablatures. At 0.4.2, it’s still a work in progress. But you should now be able to write some decent guitar tablatures with it (check out the examples!). [more inside]
Using a Matrix to Visualize a Social Network
Visualize a Social Network with the Neography gem and Neo4j.
Speciny - A Tiny RSpec clone
I just released Speciny a tiny rspec clone as part of my learning ruby adventure. I started using RSpec for testing and i wanted to better understand how it works and how DSLs work in general so i made this tiny clone. [more inside]
Copycopter is now open source
Dan Croak wrote a blog post on moving Copycopter to an OSS project.
Learning More About JRuby from Charles Nutter
I just had a fascinating conversation about JRuby with Charles Nutter… the best part was chatting with him about JRuby internals. You can read it all on RubySource.com.
Ruby Script for fetching thumbnail images for videos of youtube and vimeo
Ruby Script for fetching thumbnail images for videos of youtube and vimeo http://prashantsahni.in/blog/2012/03/15/fetch-video-thumbail/ and yada yada.
Padrino Web Framework 0.10.6: ActiveSupport 3.2, Improved Logger, HTML5 Helpers and bug fixes
The Padrino team just released 0.10.6 stable which includes ActiveRecord 3.2 support, MiniRecord support, Logging upgrades, performance improvements and a lot of bug fixes and component compatibility updates. Read our blog entry on this release for more details!
Githug - an interactive way to learn how to use git
I just launched Githug an interactive way to learn git. There are currently 20 levels ranging from basic tasks such as git init to doing a diff and contributing to other repositories.
Objects on Rails now available to read online
“Objects on Rails”, a developer notebook exploring ideas and techniques for applying classic OO thinking to Rails projects, is now available free to read online.
Github.js — Write files to Github right from the browser.
I just pushed Version 0.1.2 of Github.js, a higher-level wrapper around the Github API. Intended for the browser.
How to write (and test!) a gem that adds files to the Rails asset pipeline
I just posted an article over at Rake Routes on how to write and test a Rails asset pipeline gem.
The Ruby Refresher
If you’re a rusty Ruby programmer, looking for a refresher on the Ruby language, you might enjoy this document: The Ruby Refresher.
You got NoSQL in my Postgres! Using Hstore in Rails
Wouldn’t it be awesome if we could just save data in a database like a hash? Well now you can, with hstore & Rails. Hstore is a key/value schema-less datastore in Postgres, use it just like a hash…(more)
Ruby 2.0 Enumerable::Lazy
My Enumerable::Lazy patch was accepted into ruby trunk few days ago. So, in ruby 2.0, methods like map, select, grep, etc can be lazy chained. More on this in my blog post.
Add Kalendae to your Rails App with the Kalendae Assets gem
Here’s a tutorial on how to add Kalendae (that new JavaScript date picker) to a Rails app using my new kalendae_assets gem.
Super Fast JSON Parser
I just released a JSON parser under the name of Oj that is 10 to 20 times faster than both the Yajl and JSON::Ext JSON parsers. Check out the gem and the Oj::Doc class. It uses a different API than others and that allows for implementing a parser that is much faster. [more inside]
How to write MiniTest::Spec Expectations
I’m a fan of MiniTest::Spec. It strikes a nice balance between the simplicity of TestUnit and the readable syntax of RSpec. So here’s how to write MiniTest::Spec Expectations.
Why I Use GEdit for Ruby programming and why you should too...
I’ve compiled a list of od the reasons I use GEdit and I’d like you share it with you. So, here is the list.
Wroclove.rb Links
There were some great presentations at wroclove.rb and Michał Kwiatkowski is gathering a list of all the things you missed.