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.
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.
Bind jQuery Event Handlers To This Object With CoffeeScript
A helpful tip if you construct rich JavaScript objects to encapsulate behavior and expect “this” to be your object vs raw DOM elements when using jQuery.
html2haml.heroku.com up 670% in one year!
Read more about html2haml.heroku.com!
Rails 3.1 RC1 Released
Go get it! More details later ;-)
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? Read more
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.
Why Frozen Rails will never charge our speakers a penny
A few of the reasons why Frozen Rails will never charge admission fees to our speakers (in response to talk about DjangoCon on Twitter yesterday).
Copy is a simple, Sinatra-based CMS (Copy Management System).
Copy allows you to create blocks of easily editable text; it’s perfect for small, brochure-like sites. See the demo.
CoffeeBeans - The parts of CoffeeScript they forgot in Rails 3.1!
In Rails 3.1 it’s incredibly easy to build your application’s JavaScript using CoffeeScript, however if you fire off an AJAX request to your application you can only write your response using regular JavaScript and not CoffeeScript, at least until CoffeeBeans came along.
Gemsitter - GEM Version Update Checker
Gemsitter check the installed gem’s and the versions in your webapplication for updates.
Questionable!
Questionable makes it easily to add question methods (those ending with a question mark..) for internally testing against instance variables. See an example here. Check out the GitHub repo over here.