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.
Restivus - REST APIs for the rest of us
I just launched Restivus. It helps you expose CSV data as a REST API, with a self-generating docs page that has example requests and responses that actually work.
Muse - A Ruby DSL for making music
Muse is a Ruby DSL for creating music. Unlike MIDI, Muse scores actually create WAV files and are also executable Ruby scripts to boot. You can write your own songs or dynamically create them based on input data, embed Muse within other applications and generally have lots of fun with it!
Custom RSpec matchers for blocks, and the Ruby magic behind their inner workings
In RSpec it is possible to define special custom matchers that enable us to test, with a neat syntax, what happens when some code is executed, while also helping reduce duplication. [more inside]
Autosmusher gem for Paperclip
Hi you all, I’ve just published paperclip-smusher gem. It is useful to compress JPEG and PNG images during paperclip image upload process. I hope you like it, and feel free to contibute!
Rails and CanCan: Authorization for Specific Fields
Over on the Highgroove blog, I posted about Rails and CanCan: Authorization for Specific Fields.
Active Record without inheritance
ActiveRecordComposition is a gem that allows you to easily use ActiveRecord without inheritance of ActiveRecord::Base. It dynamically creates an aggregate that holds the association for you and delegates your interactions with ActiveRecord to the delegate. Come check it out! [more inside]
Tuning Apache and Passenger
Ever wonder how to measure and tune your application’s performance? In Performance Tuning Apache and Passenger, I show how we used httperf, htop, iftop, and a handful of other tools to measure, tune, and identify performance hotspots in your application. While this deals a lot with Rails, Apache, and Passenger, what I cover about the use of the tools apply to any http server-side process.
rails_best_practices 1.8.0 released
I just released rails_best_practices 1.8.0, it adds not use time_ago_in_words check, provides better foreign key and routes analyzer, etc., check out the changelogs here
Quick dive into Ruby ORM object initialization
If you ever wondered what’s going on when you initialize an ActiveRecord model, and if you aren’t scared of pretty graphs, then checkout my latest blog post on this topic.
New Ubiquo screencast - How to create a store with Ubiquo in 2 minutes
Check it out: How to create a store with Ubiquo in 2 minutes
Simple Form 2.0 released
Simple form 2.0 has been released and its main features are: new wrapper api and bootstrap integration. Check out the release blog post for more information about it.
Let's write a gem: Part 2
I’ve just posted Let’s write a gem: Part 2 to rakeroutes.com. The second of a two part series on how to write a Ruby gem.
markdown-rails: Markdown for Rails views
Writing prose in HTML is icky. I wrote a markdown-rails gem that enables static .html.md views (and partials) written in Markdown.
sending faxes via sipgate from ruby
I just launched rsipgate - refactored version of sipgate gem to proper sending faxes via sipgate from ruby.
A project to send files using DNS, and some questions from a beginner
You can find it at . The project that I created allows people to share files using DNS. A file is pushed to an authoritative name server and can be pulled back down with a file key. If it’s pulled back down from someone’s normal name servers, it will (depending on DNS server settings) be cached on that name server. Subsequent pulls from that name server won’t need to hit the authoritative name server for records as long as it’s cached (usually TTL, sometimes not). [more inside]
Don't let your Heroku apps fail silently
@logentries, We’ve put together a blog post on how to get automatic notifications on Heroku error codes, so that you find your problems before your users do. Check it out, and feel free to leave any relevant feedback, good / bad / indifferent :)
High Quality and Affordable Shared Hosting for Rails Apps: WebFaction
I just finished writing a new post about WebFaction. They are a great service, and you can read my review of it here.
Oauth2 server implementation - going to the next level using engines
Time ago I’ve created a rest oauth2 server implementation. It’s covered with testing but I’ve no time to work on it for now. I write here to search for people who wants to take the code I’ve done and create an engine.
Themes for Rails With Assets Pipeline Support
I wrote an article about Themes for Rails With Assets Pipeline Support. This was a long overdue feature, so if your are using the themes_for_rails gem, I encourage you to read it.
Easily split URIs
UniformResourceIdentifier splits your full URIs without the hassle of validation. Sticks to RFC 3986 as closely as possible. (client-side counter part)
Rails Engines and Monkey Patching
A pattern for extending Rails Engines
Let's write a gem: Part 1
I’ve just posted Let’s write a gem: Part 1 to rakeroutes.com. The first of a two part series on how to write a Ruby gem.
Nezumi 2 for Heroku
I just launched Nezumi 2, an iPhone app to manage your Heroku apps. It adds Cedar support, multiple accounts, and more.
A Unix Shell in Ruby - Part 2
I just published the second article in a series where I implement a Unix shell in pure Ruby code. This time it covers builtin commands.
Command Line Reporter 3.1 Released
The latest version of Command Line Reporter now allows you to capture output as a single string. The gem is available on rubygems.org with source on github. For those not familiar with Command Line Reporter, the gem provides a ruby DSL for writing ascii reports with built in features like progress reporting and table formatting. It is very handy for system level and data reporting scripts.