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.
How to Make Gem Patches with Gem Edit
A blog post on using gem edit to add quick patches to ruby gems.
Tutorial and Example App for Rails with Subdomains
My RailsApps tutorials and starter apps have been well-received (thanks!) and today I completed a new one. You can find the example app for Rails 3.1 Subdomains in the GitHub repo. The Rails 3.1 Subdomains Tutorial is in the GitHib wiki and you can find an application template for a Rails starter app on GitHub as well. The example app shows how to build an app with “Basecamp-style” use of subdomains using Mongoid for a datastore and Devise for authentication. As always, please try it, copy, fork and submit issues so all may benefit.
Nyan Cat RSpec Formatter
I watch a lot of tests run in a given day. So I figured why not make it more fun. So I created Nyan Cat RSpec Formatter gem. (Includes Screencast)
Convert Ruby Regexp to JavaScript RegExp
One line monkey patch. Limited use case but this works for most conditions I could find.
Convert Ruby Regexp to JavaScript RegExp
One line monkey patch. Limited use case but this works for most conditions I could find, I hope this helps someone else.
Dotfiles for insane productivity in git, rails, vim
I released my dotfiles including two character mnemonics for common commands in bash/git and vim files with single letter capital mnemonics for all kinds of code navigation.
Screencasts and tutotorial on creating an OAuth provider and consumer.
I have recently updated my OAuth2 tutorial and created screencasts to go with it. It covers creating a provider with the oauth-plugin gem in rails and creating a consumer with sinatra and the oauth2 gem.
bookshop gem drops docbook for html
I just finished and released a complete rewrite of the bookshop gem. bookshop is a publishing framework for html-to-(e)book toolchain happiness and sustainable productivity. The framework is optimized to help developers quickly ramp-up, allowing them to more rapidly jump in and develop their html-to-(e)book (print-pdf, epub, mobi, etc.) flows, by favoring convention over configuration, setting them up with best practices, standards and tools from the start. [more inside]
Setting up Ruby & Rails on openSUSE 12.1
I just posted a walkthrough on setting up and configuring openSUSE 12.1 which was just recently released for Ruby/Ruby on Rails development using RVM. Check it out.
Vim for Rails developers: Lazy modern configuration
I just published Lazy modern configuration in my Vim for Rails developer series.
Testing Backbone applications with Jasmine and Sinon
Part 1: Introduction Part 2: Models and Collections Part 3: Routers and Views by Jim Newbery
Cached Resource 2.0.1 Released
Cached Resource 2.0.1 has been released. You can now enable the functionality on a per-class basis. It also fixes a “memory leak” with its logger. [more inside]
This is very sad.
Ilya Zhitomirskiy, one of Diaspora’s four founders, died over the weekend at just 22 years of age. [more inside]
Setting up Ubuntu with Teleport
A short introductory blog post on Teleport, a lightweight yet powerful way for preparing Ubuntu machines to deploy ruby apps.
Fourth batch of PuzzleNode problems released
I just released three new puzzles on puzzlenode.com. Check them out if you enjoy Project Euler / IPSC style problems, or if you’re planning to apply to Mendicant University when admissions open a few days from now. We use these puzzles as our entrance exam.
Programminw with Kids using Ruby toolkits
I’ve started to teach my kids to program and have learned that * websites are boring & * games are fun [more inside]
Stripe vs. ActiveMerchant
I’ve been playing around with stripe for the past month and I have been pretty impressed. It is so easy to use and the documentation is great. That being said there are downsides to stripe compared to ActiveMerchant. [more inside]
Nathan Kleyn writes about some best prac...
Nathan Kleyn writes about some best practices when cutting gems in Crafting Rubies: Best Practices While Cutting Gems
Serve erb files the wrong way (like php does it)
Here is the full guide. The idea is to configure Apache so you can upload an erb file to anywhere in your DocumentRoot and have it interpreted and then sent to the browser, just like you can do with php files. Basically, you configure Apache to take any request to a .erb file and redirect it to a cgi script.
Setting up Rails credit card processing with Braintree
Here’s a journal of my experiences setting up credit card payments in a Rails app using Braintree and the VCR gem.
Challenge: Content-aware image cropping with ChunkyPNG
This week, Codebrawl’s running a Ruby programming contest challenging you to build a content-aware image cropping tool with ChunkyPNG. Show us what you’ve got!
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]