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.
Gettext on Rails 3.0.0.beta
An example app of gettext on rails 3.0. Got another ruby/rails gem you need to get upgraded to 3.0? post it on Next Sprocket!
Custom Shoulda macros — a tutorial
If you’re a Shoulda user (a begginer or intermediate), you might be interested in a tutorial on writing custom Shoulda macros, i.e. how easy it is to create your own version of should_have_many etc.
Introducing Configr, an elegant configuration interface in Ruby
Configr aims to provide a clean interface for configuring and reading a set of configuration values. The idea evolved from using a standard hash as a configuration store into a more elegant way to declare and read values from within a hash. Check out the blog post.
Slug-less pretty permalink based URL’s in Rails 2.3
Slugs are bad kids. I know rails 2.3 is obsolete now that 3.0 is on the cards ;-) but slugs_are_bad is a plugin that allows you to create slug-less url’s for your rails app without having to make too many changes to your code. I created a quick blog post to explain the plugin here.
Rails 3: Let ActiveRecord Manage Your Translations
For anyone tired of managing translations in YAML files, Rails 3’s I18n ActiveRecord backend is easy to setup and use.
implements - regulated interfaces for ruby
One thing about java that’s pretty useful is it’s regulated interfaces. This is a simple proof-of-concept of that pattern implemented in Ruby.
Frank - a gem for static builds and prototypes
Frank lets you build static sites super fast. It uses Tilt, so it comes with support for Haml & Sass, LESS, Builder, ERB, Liquid, Mustache, & CoffeeScript. Frank also has a helpers for lorem text and generating placeholder images.
Mongrations: Migrations for MongoMapper
I just sleepily wrote mongrations, a Rails plugin that gives you migrations for MongoMapper.
About PeepCode's Blog
Geoffrey Grosenbach describes how he built a blog that supports per-post styles using Sinatra, Haml, and more.
Steps to replace bundler 0.8 with bundler08
If you got gems lying around that still use bundler 0.8, try this without rebuilding/reinstalling the lying gems.
Ruby’s Implementation Does Not Define its Semantics
A post by Yehuda Katz about Ruby’s Implementation Does Not Define its Semantics. I particularly liked hearing about the regex stuff as I have always found it to be awkward.
Using Ruby On Rails With Oracle And Deploying It All To Tomcat
Ruby on Rails projects usually use MySQL or PostgreSQL for their database, but in the corporate world, Oracle is king. As much as you might like to have a Postgres backend, the powers-that-be have decreed and you must obey. Don’t worry though, all is not lost, you don’t have to slink back to Java, here is how you can get your Rails app working with an Oracle database and deploy it all to Tomcat as a Java webapp if that wasn’t enough.
retiring rufus-tokyo
rufus-tokyo is a FFI (and more) library for Tokyo Cabinet Tyrant. It’s time to retire it, there are better options now.
QR (de)Coding
Encoding QR Codes with Ruby is a solved problem, but decoding is another story. There are several Java libraries that provide decoding functionality though, so wrapping one of them with JRuby is likely a good idea.
Ruby Object Model and Metaprogramming
Click here to learn the basics of the Ruby object model and metaprogramming. Start writing code that writes itself with a newbie friendly guide with lots of example code.
Travel in time with Ruby in a Delorean
We’ve just released Delorean. This is a gem we’ve packaged from a piece of code we’ve been using for months that lets you travel in time with ruby by mocking Time.now which is extremely useful for testing. Check it out at http://github.com/bebanjo/delorean
Rails 3.0 Beta Setup with RVM + Ruby 1.9.2
Here are some tips for setting up a Rails 3.0 Beta environment using RVM and Ruby 1.9.2
Ruby Best Practices Chapter 5 Released
You can now download Chapter 5: Functional Programming Techniques via the RBP blog. Same link will bring you to download links for Ch1-4 as well. Enjoy!
Speed up your Rails XML responses
Here is an interesting blog post to show how to speed up your Rails XML responses by adding some tenderlove to your code.
[ANN] JEGII throws a Ruby Challenge at Newbies
James Edward Gary II the creator of the popular Ruby Quiz throws a new Ruby Challenge for Newbies at RubyLearning. No entry fee and you can win prizes too.
ActiveRecord validation groups with grouped_validations plugin
The grouped_validations plugin allows you to define validation groups which you can check for validity in isolation from the rest of the validations on a model. Handy for multi-page forms or wizard style data entry.
Handling Title Tags in Rails
Handling title tags in rails has always been difficult and not very DRY. Until now. title_tag is a new plugin that attempts to make this very easy, and easy to modify! Read The Full Article
New RDoc Chrome Extension
I was sick of googling the RDocs and end up getting the docs for the wrong version, so I whipped up a new RDoc Google Chrome extension. Check out the screenshots and download it here. Send all bugs/ideas to c00lryguy+rdoc@gmail.com
Rails Hosting Roundup
In this report on Rails hosting, I recommend some of the best Rails hosting services for all budgets.