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.
Translate Rails2/3 routes easily, Good for SEO and for customers
When dealing with websites with multiple languages/locales, it’s always great to also have your url translated. Google will really enjoy it and your customers will more feel like home. With the i18n_routing gem, it’s easy, no change in your code is needed: just add translations through the i18n api. And it’s already working on Rails3 !
Migrate data between databases/structures more easily...
I just launched a little gem that helps you migrate data from an old database structure, to a new database structure using a really expressive syntax. Check it out right here: Legacy Migrations Gem.
English 0.6
I released English v0.6.0 yesterday. The API is looking pretty sweet. I’m quite happy with it. Most of the changes were under-the-hood, including a new dependency on the spun-off Language gem, but be sure to check out the Wiki for some helpful tips.
Ubiquo Categories released
We just launched ubiquo categories a new plugin for the ubiquo CMS Framework.
RubyRags (Ruby Clothing Site) For Sale
Ryan Norbauer is selling his RubyRags.com, Ruby-related clothing site. In the last 2 years, it’s taken in about $16K and fulfilment, etc, is handled by a third party. There’s more information relating to the sale here.
Travel To The Core Rails 3 Methods Without Leaving IRB Prompt
method_extensions gem adds Method#source, Method#doc, and Method#super methods to the core Method object. Let’s see how that can be used to travel the Rails source code.
Ruby annotations
Learn how to create Ruby annotations like this: class User admin_only def update; … end end
DataMapper 1.0.0 rc3 Released
DataMapper 1.0.0 rc3 released. Several improvements and bug fixes since rc2. Approximately 50 tickets closed since 0.10.2.
How to setup rails 3 with mongoid and cucumber for heroku
I wanted to share some of the solutions I found while setting up rails 3 with cucumber and mongoid on heroku. The blog itself is the example.
Google Analytics Integration with OAuth
Nick Plante just wrote up an article on integrating a Rails app with Google Analytics and OAuth through garb.
Scaling Twitter Applications Without Blinking - Apigee & Heroku
A service like Twitter is both open & connected to an expanding social graph. Each day developers invent new apps that use the Twitter API. With this in mind, we built Twitter-specific analytics and utilities into Apigee. Today we announced a partnership with Heroku to provide the Apigee Add-on for Ruby developers - Heroku makes it easy to scale up a Ruby app and Apigee makes it easy to scale up access to the Twitter API. We invite you to check it out!
Ruby static code analysis
I did a short writeup about Ruby static code analysis. It describes Flog, Flay, Heckle and Reek.
Ruby Methods with Spaces
Joon You put together a short video called Ruby Methods with Spaces on TeachMeToCode.com. [more inside]
Ruby Procs And Lambdas (And The Difference Between Them)
I often find it valuable to go back to the fundamentals of whatever skill I am trying to master periodically, as I gain more experience. To that end I recently decided to revisit Ruby procs and lambdas and the differences between them, hope you find it interesting.
HOWTO: Unobtrusive JavaScript with Rails 3
I wrote a post on RailsInside about UJS in Rails 3. A must read for everyone curious to set jQuery up with it. Includes a neat initializer to load jQuery when using javascript_include_tag :defaults
.
ruby-traileraddict: easily display movie trailers in your application
After battling various restrictive TOS while trying to find a freely available source of high quality movie trailers for use in a web-app I finally came across TrailerAddict. Unfortunately their ‘API’ is actually only designed for manual use! This API wrapper makes it easy to use TrailerAddict trailers in your application! ruby-traileraddict
The alias_method_chain of Rake - Override Rake Task
Rake is cool. It is built so that multiple tasks with the same name run in a reverse defined series. This is great, but sometimes you want to override a task with your own behavior and conditionally call the earlier task. Especially if that task is defined deep somewhere else, like in a rails gem.
ScopedSearch 2.2 now Rails 3 compatible
I just released version 2.2 of my super simple ActiveRecord search plugin ScopedSearch. It uses standard SQL to search records using a simple but powerful query language (think "foo !(bar | baz)"
), and it is now compatible with both ActiveRecord 2 and 3.
[ANN] Ryan Bates challenges you in Ruby!!
Ryan Bates of the Ruby on Rails screencast series fame, throws a new Ruby Challenge for Newbies at RubyLearning. Anyone can take part. There’s no entry fee and you can win prizes too.
"Debugging Ruby at Unix" slides from RubyShift
Slides from RubyShift conference in Kiev. Many useful Unix commands and tips to debug Ruby and other applications.
Rails 3 dictionary for OS X
New version of Rails 3.0.0 beta 3 dictionary is now ready for download. If you’ve been using Rails 2.3 dictionary, you may want to update this one as well as i added few important fixes in there.
define_exception gem version 0.0.3 released
Based on feedback from the release last night the latest version allows you to alternately define the parent class for your exception. The define_exception gem provides a succinct manner in which exceptions can be defined much like read/write attributes in your class using attr_accessor. It also makes it trivial to define a default message so that in most cases the second argument to raise is not necessary.
TMTC 21 - Miles Forrest Interview - Part 2
This is the second part of the interview with Miles Forrest. We talked about learning Rails, micro-brigades, and the Ruby Community.
Rails 2.3.8 released
A gem for defining ruby exceptions
Exceptions in ruby are defined by subclassing off of a standard exception and then using raise to invoke them. Messaging is typically separate from the class definition which isn’t very DRY when invoking raise with a second String argument multiple times. The define_exception gem provides a succinct manner in which exceptions can be defined much like read/write attributes in your class using attr_accessor. It also makes it trivial to define a default message so that in most cases the second argument to raise is not necessary.