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 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.
Can it be easier to embed pre-built ExtJS widgets into a Rails app?
A new blog post announcing a new release of the netzke-core gem/plugin: embedding Netzke (ExtJS+Rails) widgets (such as full featured Grid/FormPanel, BorderLayoutPanel, AccordionPanel, etc) into a Rails view is easier than ever.
Creating a sexy DSL like the new Rails 3 router is now within your reach!
Introducing the new binder gem. Read about the impetus for this here and here. Checkout the source here.
Really lightweight alternative to Bundler
I just launched Bling, a very lightweight alternative to Bundler. It’s not as feature rich, but hasn’t had nearly the hangups that Bundler has right now.
From TextMate to VIM for Rails Coders
I just posted a blog From TextMate to VIM for Rails Coders. The mouse is NOT needed anymore for Rails coding. – Check out whether you agree it or not. Or Just imagine bring out your iPad + Wireless Keyboard and go on hacking Rails code quickly with SSH + VIM… Cool enough?
New manifest generator
I just released Mast v1.2. Mast is a really nifty manifest generator and comparison tool with a unique ability to store generation options in the manifest file itself. This release addresses some minor issues from the previous release.
Some rvm gotchas
I recently installed the awesome Ruby Version Manager, mainly to run Rails 2 and Rails 3 on the same system but also to try out Ruby 1.9. Here are some rvm gotchas I ran into along the way.
Rake and Ant Together: A Pick It n' Stick It Approach
Tom Enebo posts on build tools in JRuby on the Engine Yard Blog.
Scheduling Jobs with DelayedJob
Here’s a module I wrote that makes scheduling jobs with DJ easier.
Getting started with Duby and MongoDB
A new version of Duby (A Ruby-tasting language) has been released. So I decided to write a new tutorial to learn how to use MongoDB with Duby.
Love/HATE - a tool for developers to shout at each other, preferably on a TV
I put together an app called Love/HATE (open source) that lets developers love or hate something and send that up to a page. We have it on a TV here; it’s hilarious (and informative).