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 not forget about db migrations
before_filter which will remind to run migrations
AssetHat: Load CSS, JS, and images faster in Rails 3
AssetHat 0.4 is now available. It’s a Rails gem that makes CSS, JS, and images load faster—especially useful for mobile websites. Beyond the usual concatenation and minification, AssetHat can rewrite CSS image URLs to use multiple CDN subdomains, and make it as simple as <%= include_js :jquery %>
to load popular third-party JS from Google’s CDN. To switch on LABjs, just add :loader => :lab_js
. Check out the official website, stats from a bunch of production sites, and the extensive docs for more.
Did You Know That (in Ruby): NameError::message
While whipping up a tiny pure-Ruby implementation of the standard exception hierarchy for Laser, I came across a simply peculiar class: NameError::message.
Programming with an online IDE
Compilr.com online IDE lets you write in Ruby from almost any computer, storing your code online: Compilr.com
Representable gem released: Improve your REST representation code!
The representable gem helps to keep parsing and rendering representations in one place by letting you define mappings in your models (or anywhere else). This post briefly discusses how this works.
Submit a question to RubyRescue.tv and you could win $50!
Last week we (Jeremy and Ryan from Arcturo) ran our first show of RubyRescue.tv, a live question/answer/discussion show for Ruby happening every Tuesday at 2p.m. Eastern. It went awesome, and so this week we’re offering a $50 Amazon Gift Card up for grabs for one lucky question submitter. Head over to the website and submit a question using one of the forms or other methods there. Good luck!
ruby IVR with tropo and padrino
We wrote a little ruby IVR app at Culture Hack Scotland. call it on skype / source on github
Don't like WEBrick? Try net-http-server
net-http-server is a pure-Ruby, small, Rack-like and Rack-compliant HTTP Server, meant to be a simpler alternative to WEBrick. Blog post gives a walk through of just how simple net-http-server is.
Post jobs on rails-bestpractices.com
I’m glad to say that job board has been added to rails-bestpractices.com, you can post ruby/rails related jobs on it, it’s free now. I hope companies can find good rails developers and rails developers can find good rails jobs on it, it’s a win-win.
Endless Page Scrolling with Rails 3 and jQuery
Learn how to implement endless page scrolling on your Rails 3 app with this detailed blog post. Includes an example application and code repository.
Atto, a self-contained ultra tiny testing framework.
I just pushed the gem for version 0.9 of Atto, a self-contained, ultra tiny testing framework inspired by and partially based on Nanotest by mynyml. Atto has atto
, an automatic test runner, and has support for ANSI colors built in. I’m using it extensively for several of my own projects, and I think it’s nice because it keeps the unit tests simple and quick to write. Ideal for people who like a minimalistic approach to testing.
Reversible Migrations in Rails 3.1
Find out about the new Reversible Migrations in Rails 3.1 — an EdgeRails.info article.
Ruco: Simple Commandline Editor (think nano/pico) but awesome (and in Ruby).
Ruco is a simplistic/intuitive editor written test-driven in Ruby. It can be configured/extended via .ruco.rb and aims to feels like your desktop editor (e.g. shift+arrow-keys=selecting, ctrl+c/v/x, ctrl+s=save, ctrl+w=close, ctrl+r=replace and much more). Take it for a ride via gem install ruco.
The CoffeeScript Cookbook
I just launched CoffeeScriptCookbook.com because I have committed myself to drinking the Rails 3 kool-aid. Right now it has a grand total of FIVE recipes! Come on over, fork the project on Github, add some recipes (or help design an actual site layout!) to get commit access, and be awesome forever!
Tom Preston-Werner Interview
Do you love Github? Want to know about some of their magic? I interviewed Tom Preston-Werner, one of their co-founders. We talked about the origins of the company. How they run it. How Tom thinks about building applications and contributing to Open Source. [more inside]
will_paginate in Javascript
We recently released jQuery Fiji Paginate as part of our jQuery Fiji project (some widgets based on jQuery UI). The pagination widget is fully compatible with will_paginate (Rails 3 branch). It has nearly the same configuration options and output (even the logic behind it is very similiar … just in Javascript). [more inside]
Refactoring to Modules
Great post on refactoring to modules for DRYer code and easier testing.
Rails 3.1 CoffeeScript and JQuery Demo
I was curious about how Rails 3.1 was going to manage CoffeeScript and include jQuery, so I created a simple app and tried it out. Here’s a 10 minute video on just how simple it is.
Safely updates, now with email exceptions and application postmortems
I updated safely to support email exceptions, logging exceptions and logging unhandled exceptions responsible for terminating your Ruby application unexpectedly. See this safely update post for more information.
Wtf_lang: Detect any language in an easy way.
Can’t stop dreaming about an easy language detector? Just use wtf_lang!
Rails 3 beta 1 changelog
This gist lists all the changes in the most recent beta of Rails.
RuLu: Ruby Conference in Lyon, France on June 25-26th
The Lyon Ruby Brigade is pleased to announce its first Ruby Conference in Lyon, France. This conference will take place on June 25th and 26th. All the information you need to join us are on our website rulu.eu or on Twitter @rubylug.
Padrino 0.9.27 Released
The Padrino team just released 0.9.27 which includes project-wide settings, reverse route recognition, and a multitude of compatibility and bug fixes. Read about this release on our blog entry for more details. We also setup a CI and better release processes as we approach 1.0 which ensure Padrino will run smoothly on every ruby runtime as well as better integration tests that ensure each release doesn’t break compatibility with the last.