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.
Ruby 1.9 American Style Date Parsing
It would appear that all dates to Ruby 1.9 work as “dd/mm/yyyy”. I have made monkey patch to Ruby’s String that will allow ‘American’ (mm/dd/yyyy) style date processing in Rails to_date method.
Quack Attack: Making Your Code More Rubyish
Over on the RBP Blog, I wrote up a quick article on how to write objects that quack like core Ruby objects, and reviewed some of the benefits of this technique. I’m curious to see what other folks come up with as examples.
New Subdomain Routing Gem for Rails
I just released a SubdomainRoutes gem for adding subdomains to the routes in your Rails app. It’s fully integrated into route recognition, URL writing and route mapping in your routes.rb file.
Ruby on OS X Conference HD videos
On the 15th of May we organized the Ruby on OS X conference in Amsterdam, which, as the name indicates, focussed on building Ruby applications on Mac OS X. As of today all talks are available in either 720p HD or a lower resolution iPhone compatible M4V. http://www.fngtps.com/2009/06/ruby-on-os-x-conference-videos - Enjoy!
handling dynamic hosts and proxied requests in rails
Check out the blog post and the code at http://github.com/shuber/proxy
The Future of Ruby is Fail!
Thanks to Ilya Grigorik for initiating the discussion in the Indian Ruby / Rails community around the premise “Future of Ruby is Fail” (yes, somewhat tongue in cheek, but also serious), trying to get a feel for the concerns in the community. The focus of this discussion would be on the Indian market / geographical area. 5 top Rails experts from Pune, India discuss this.
RubyTrends updated!
Thanks to your feedback, RubyTrends.com has been updated. New features include a popular category (see everything in one spot), tag cloud and comments. More features planned and coming soon! Thanks to everyone for their comments/suggestions!
Getting rails to play with a legacy Oracle database
This post will give you a few pointers for getting rails to work with existing Oracle databases which do not follow the typical rails conventions.
JS.Class 2.1 released
I just released JS.Class 2.1, my implementation of Ruby’s object system in JavaScript. This release includes a Hash implementation, HashSet, an updated Ruby 1.9 Enumerable module with enumerators and Symbol#to_proc functionality, and an improved package manager.
WxRuby for the Lazy
WxRuby for the Lazy demonstrates a lazy coding technique that helps simplify the creation of WxRuby GUIs.
TrixyScopes - collection of handy names scopes
Makes your daily RoR development much easier. Check it out on github.
5 Ruby-related blogs for June
Over the years, I’ve collected a fair number of Ruby blogs in my feed reader. I thought I’d start sharing them for the benefit of others. Here’s the first installment.
Looking for the most ridiculous commit on the GitHub...
I thought my one space between sentences commit was pretty preposterous, but I’m sure worse has occurred. Please post the most ridiculous commits you’ve ever seen in the comments. I’d love to see.
The Importance of Executable Class Bodies
The Importance of Executable Class Bodies Groovy is missing a number of features that Ruby has, and is more clunky in a number of cases.
Do Androids Count Electric Sheep with DB2 or MySQL?
Comparing MySQL and DB2’s performance when using ActiveRecord’s count calculations.
Network-wide configuration manager using Sinatra
Airtruk is an application that will feed a shell script to a machine based on it’s hostname. It allows for any number of configurations and for files to be both replaced and executed. See: PWN Your Infrastructure Behind Call of Duty: World at War for the original presentation on managing a network of rails machines.
Copy'n'Paste in IRB
If you’re on Mac (or Linux with xclip) and find yourself very often pasting/copying thing from IRB, have a look at this little snippet.
Fixing the PassengerMemLimit patch
If you’re using Passenger you might want to set PassengerMemLimit to keep memory usage under control. But the original patch is 4 months old and no longer applies cleanly. So I posted an updated patch with some notes on installing it and using the PassengerMemLimit directive.
Brian Ford on RubySpec as a Community Resource
Over on the RBP Blog, I caught up with Brian Ford about RubySpec and its importance to the Ruby community at large.
Security hole found in Rails 2.3's http_authentication.rb
A hole that I believe could be a MAJOR deal for anyone using digest authentication in Rails 2.3 with the new http_authentication.rb code and who followed the simple Digest example from the rdoc, or the blog entry introducing it.
WeeklyBuilder: A weekly calendar plugin for Rails (horizontally scrolling)
Calendars in rails are a solved problem, right? But oddly I couldn’t find one out of the 80 “calendar + ruby” listed on github with a weekly view. So I decided to build my own and I’m happy to announce my first plugin: WeeklyBuilder. The builder creates a horizontal scrolling calendar, mapping events for each day of the week. The layout is fluid CSS and the hours can be switched from business hours to 24 hours.
Download a large amount of data in CSV from Rails
A blog post on streaming CSV data from Rails, read the post.
Clicktale + Rails = Better Usability
The Plugin Clicktale is a service that allows you to record and later playback behavior of your users while they are using your site. And Rails is Rails, you know. And those two are getting along just fine, until the user logs in. After that clicktale service is cut out of the html pages this user gets and can’t record the session. But it just started to get interesting… This plugin brings back the connection between Clicktale and Rails even for those closed pages. You’re going to get your better usability after all.
Shopify API and App Store Launched
Yesterday we announced the launch of the Shopify API and the Shopify App Store. Shopify is the simple and flexible way to build and run an online store, and it’s been running happily on Rails for three years. Now you can integrate your own apps with the Shopify platform and provide valuable solutions to thousands of Shopify users. Get up and running with our Rails plugin and you can have a working Shopify app deployed to Heroku in about 10 minutes.