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.
Using CoffeeScript with nanoc static site builder
If you want to build your web page in plain html, but program in ruby/erb/haml etc., you can use nanoc builder. Also, if you dont work directly with javascript, use coffescript (as partial or asset). Here are step-by-step instructions of how to do this.
Protecting you paperclip downloads
Paperclip download protection.
Release Candidate for Radiant 1.0
We’ve just released the first release candidate for Radiant 1.0; the last Rails 2 version. [more inside]
Vim for Rails developers: Recursive macros and Ack.vim
I just published recursive macros and ack.vim in my vim for rails developers series.
A voting extension from scratch for Rails 3 (Part 5)
Part 5 of the blog series about developing the MakeVoteable is an introduction to writing migration generators the Rails 3 way and testing them with RSpec using the generator_spec gem.
Rails + Backbone.js app that works offline
I just made a simple web app with Rails and Backbone.js that works both online and offline.
Mending the RubyGems Fences
Yesterday I wrote an unsurprisingly controversial appeal for folks to stop raging against the RubyGems maintainers. Today, I’ve written a followup about how we can mend fences and make things better. If you’re someone who’s frustrated with RubyGems, I want to hear from you!
Screencast on how callbacks work in Rails
BigBinary just published a screencast on How callbacks work in Rails .
Making Migrations Faster and Safer
Baron Schwartz outlines the importance of reviewing migrations to ensure all ALTER TABLE are combined into a single one.
guard-annotate gem released
I just released the guard-annotate gem for Rails developers who use guard and the annotate gem. Source code is available on GitHub.
JSONSelect for Ruby.
I just ported JSONSelect to Ruby.
Getting Your Rails 3 App's Routes at Runtime
Check out this blog post with a quick tip on how to get a ‘rake routes’ functionality at runtime on your Rails 3 app.
nanoc-cachebuster gem
I have created a gem that makes it easy to add cachebusters to the static assets in your Nanoc project: nanoc-cachebuster. It helps you make the most of client-side caching. I extracted it from my nanoc-template project. If you use Nanoc, check it out, leave some feedback and fork away.
The State of MacRuby (Episode 95 from the SD Ruby podcast)
Matt Aimonetti discusses the latest developments with the MacRuby project, which aims to implement Ruby 1.9 directly on top of Mac OS X core technologies. Watch episode
Send/Receive SMS Messages with SMSified Gem for 1 Penny
@JSGoecke releases the SMSified Gem that allows your to send/receive SMS messages using Ruby for 1 penny per message! It’s simple.. see inside for examples. Happy texting and BTW, messages are free until we get around to implementing billing!
padrino-lazy
Through padrino-lazy, we can include some common properties shared between the model object used a base model object. continue
PJAX Demo in Padrino
Just as an experiment, I threw together an adapted version of defunkt’s original sinatra PJAX demo and cleaned it up by augmenting it with Padrino in the padrino-pjax project. Check out the live demo to see Padrino+PJAX in action. Mind you the real core to this is all in defunkt’s jquery.pjax. Really cool little library!
"Pure" CoffeeScript with Guard
Here is how to use the guard-coffeescript gem to maintain a “pure” CoffeeScript project with a clean, off-to-the-side directory of all the compiled JavaScript files and still preserve the directory structure within it.
The Ruby Rogues on Templating Languages
Ever wanted to have a rousing discussion on which templating language to use in your application? Are you a HAML nut or an ERB freak? Think SASS is the bee’s knees? [more inside]
Rails core_ext: Array Access
I just published a post: Rails core_ext: Array Access, the first article of the Rails core_ext series.
How We (EY) Migrated to Terremak's Cloud: Part I and II
Dan Peterson walks through the process and tools used when we migrated from our own infrastructure to xCloud on Terremark. Read the details in Part I and Part II of Dan’s blog series.