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.
Faye gets server-side clients
Faye is a simple-to-use publish/subscribe messaging library that implements the Bayeux protocol for Ruby and Node.js. The latest release adds support for server-side clients, so now your backend application can send messages out to client browsers.
Vim for Rails Development
Where to start and how to learn Vim for Rails Development by referencing some books/screencasts.
Social Networking as a Service with EngineY
EngineY is an open source project that provides a complete social networking framework that can be run stand alone as a social network similar to a Ning social network, or it can be integrated with an existing website to provide just the social capabilities. It is a project that I have been developing over the past year or so. In this post, I want to talk about another way you can use EngineY, not as an application or framework that you would integrate into your code, but as a server that can provide all of the social features for your existing web applications… (READ MORE)
Schema-Free MySQL vs NoSQL (with help from Ruby)
There is no reason why we can’t have a schema-free MySQL engine to compete with the NoSQL solutions. A look at what “schema-free” and “document-oriented” actually means, and the ruby code to make it work.
Fun with Rails 3 Beta
I am quite sure that if you are a ruby developer you have heard that Rails 3 beta is now out. Here is a quick run through on installing it. Read Full Article
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.