RubyFlow : Ruby Community Link Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
September 02, 2010
Do you know that you can use the new Rails 3 HTML 5 helpers to get unobtrusive client-side validations in an instant? Read this!
I just posted a write up on how I got A Clean Install on Windows XP with Ruby 1.9.2 and Rails 3.
Learn in a minute how to deploy your Rails 3 applications like in Heroku with Inploy.
Webpulp.tv posted it's latest video interview with Kevin Smith. The interview covers CAP theorem, Riak, and ways to scale your app.
We just released RailsDeveloper, which gives developers a place to share resources, ask questions, help others, review books, watch videos, and control what content bubbles up onto their radar.
In this tutorial, I described the steps I did to deploy a simple Rails 3 application to Tomcat using JRuby. In addition, I show a way to make your Rails 3 application run side-by-side with a JRuby-based version.

I also included the problems I encountered along the way and how to solve them.
September 01, 2010
home_run is an implementation of ruby's Date/DateTime classes in C, with much better performance (20-200x) than the version in the standard library, while being almost completely compatible.
I wrote a little blog post that shows the implementation of three helpful "magical" constants:
* OS: returns the current operating system
* RubyEngine: returns the current Ruby implementation
* RubyVersion: returns the current Ruby version
I just released this tutorial on my blog for quickly creating an embedded ruby application on Android devices. The post also includes links to my other ruby-on-android open source projects.
I struggled a bit with figuring out how to use OAuth to generate access keys for my simple Twitter utilities, so I wanted to share my notes.

A Rubyist's Guide to the Twitter OAuth Dance
Videos from RubyKaigi 2010, the main Ruby conference in Japan, are now available on Vimeo. RubyKaigi 2010 was held over three days from August 27-29, 2010 in Tsukuba, Japan.

The talks at RubyKaigi 2010 had a mix up Japanese and English language speakers, including Yukihiro "Matz" Matsumoto, Chad Fowler, Yugui and the Ruby Core team, Yehuda Katz, and many more.
I wrote an article Put scripts at the bottom, it is a small trick, but really helpful to speed up the pages render. I also give an example for adding a tweet button on your pages
Simple tutorial about how to enable devise to allow facebook login.
August 31, 2010
You might want to upgrade an existing Rails 2.3.x project to the newly released Rails 3. If you saw in BDDCasts's URLAgg updates series how to get the specs to pass, now it's time to move on and get Cucumber features to pass. Check episodes six and seven for details on upgrading a project using Cucumber to Rails 3.
Dr. Bruce Scharlau from the U.K. has thrown an open challenge to people who love the Ruby programming language - Economics 101.

Anyone can take part in the Ruby Challenge and you could win a prize too.
ThunderSurvey is a survey app based on Rails 3 and MongoDB. It's super lightweight and intended to be an alternative google form.

Checkout Source
Watch Demo

It's created by sandsroad, a ruby on rails consulting company based on Shanghai China, you can reach it via Sandsroad
Just whipped up a clickable mind map of the main Rails3 components.
Big news on the Refinery CMS front! After over 600 commits we have released 0.9.8, which features several enhancements. The most important of which is that it is now the first Rails CMS to support Rails 3.

You can read the full announcement here: http://refinerycms.com/blog/refinery-cms-supports-rails-3
I'm pleased to announce Refinery CMS 0.9.8 now officially supports Rails 3. Read about the transition to Rails 3.
August 30, 2010
Sometimes just DRY the controllers is not enough, a lot of the resources often share the same views, wouldn’t it be nice to have view files DRY’ed too? You can! Inherited Resources Views is an extremely easy to use plugin to DRY the views associated with your inherited resources controllers. It is library-agnostic (it only depends on Inherited Resources) and it supports generating both erb and haml templates. Source code available at: http://github.com/fredwu/inherited_resources_views
I've created a brand new pure Ruby memcached client gem, Dalli, which is designed to replace the memcache-client gem. It drops right into Rails 3 and supports Ruby 1.8, 1.9 and managed environments like Heroku.
We just launched simple_currency, a tiny but smart currency converter. Ruby 1.8, 1.9 and JRuby compatible. Check out the github repo as well and feel free to contribute!
The first german Rails 3 book is available: Rails 3 book
Jeremy McAnally has just announced he's reduced the price of his Rails 3 Upgrade Handbook to $9 (from $12) for the next 3 days in celebration of Rails 3's release. I read it a while back and.. it's good - check it out.
Disqus is a great plug-n-chug commenting system, but it's lacking a few very useful features: Markdown support, code pretty printing, and callbacks to tell you when a comment has been added or edited. And getting the comment/reaction count for the current page or linked posts is overly complicated and/or not-well-documented. This jQuery Disqus Plugin hopefully simplifies the Disqus installation process while adding several helpful features.
Sudhindra Rao and Munjal Budhabhatti explain in their "Rocking the Enterprise with Ruby" talk at the RubyKaigi how they are building (and delivering continuously) a system orchestrating Rackspace datacenters
John Nunemaker demonstrates how to build your own (simple) object mapper.
August 29, 2010
I just launched Yet another ObjectMother pattern implementation for rails testing - Famili. Diff from factory-girl & machinist is usage plan ruby classes for factories/mothers which can be put in rails/lib and give extensibility and rails dependency management. I did it for using them in front-end testing with complex factories. If u have some ideas contact me.
I just finished writing a simple (and extensible) helper for displaying data called Objectastic. It's kinda like form_for but for data display, not data entry or editing. For rails 3, but should work with rails 2.3.x ... maybe
I have just released resque-retry v0.1.0:

* Added a multiple failure backend, with retry suppression (no more spamming your failed queue).
* Added a resque-web tab for viewing retry information.
August 28, 2010
I've just updated dsl, a gem to easily create domain specific languages within blocks, to v0.1.3
Sent a mail, added a Resque job, but something failed and you got a rollback ?
Do it after the current transaction(s) have finished!
after transaction plugin/gem
If you're running into "undefined method `has_selector?' for String" in your view specs after upgrading to RSpec 2 beta 20, this article may help you.
A Rails plugin for making versioning of RESTful APIs easier. Checkout RestfulRouteVersion .
Hey, i've just released sourcify, which introduces Proc#to_source (& Proc#to_sexp) to any vanilla Proc, cheers !!
August 26, 2010
Delayed::Job and Resque are excellent ruby gems, but they require substantial funds and/or time to setup on Heroku or Slicehost. High cost/effort prevents bootstrapped startups from building apps that need background processing, like aggregators. So I've hacked together a template Sinatra app that uses GAE to give you free Cron and Task-Queue functionality on Heroku.
Ruby|Web Conference is right around the corner! It's September 9-10 at Snowbird Resort in Utah. You can also hear my interview with conference organizer Mike Moore here.
I just wrote a short piece about how to get someone started with Rails. I'm using a simple "do it yourself" 3-part strategy that involves pushing them in head first and seeing if they can swim ;) I'm curious if anyone else has experience with this kind of thing, though. Comments and suggestions are more than welcome!
I wrote another chapter of my journey trough Rails Best Practices: optimize migrations.

Read it on DevInterface Blog.
I compiled a list of Rails 3 links and resources to celebrate the upcoming launch of Rails 3 this week.
August 25, 2010
I've launched Ruby Weekly, a weekly (each Thursday) e-mail newsletter with a roundup of the week's top Ruby and Rails links. It's not designed to replace any other site but is aimed at those who would find a weekly e-mail a better way to keep up. Enjoy!
I just released an open source self-hosted exception notifier. It is API compatible with Hoptoad so you just have to point hoptoad_notifier at it. Check it out.
Small blog article about how you can implement a "paranoid" behaviour (soft delete) in your models in a few lines of code.
I just started BankSimplistic, a sandbox for exploring concepts like Command-Query Responsibility Segregation, Event Sourcing and Domain-Driven Design with Ruby. I'm using Rails and Redis for this current implementation. Everyone interested in these topics is welcome to participate in this exploration. You can find more info in the project's Readme. Check it out!
Learn in a step by step guide how to setup an Ubuntu 10.04 server with Nginx and Unicorn and deploy your Rails application to it, including Monitoring and also some security best practices. Check it out here.
August 24, 2010
I have just released metric_abc. It is a tool that can help you find bad code in your Ruby 1.9 projects. It is much simplier cousin of Flog, but does the job in absence of Flog in Ruby 1.9 world. Check out post on my company's blog as well.
Redcar 0.4 is out exactly one year after we began porting it to JRuby with 0.3. Tons of new features. Install it with "sudo gem install redcar"
I wrote an article Fetch current user in models, you may know it, but this technique is useful for new comer.
I created Project to help reduce the repetitive nature of common daily tasks. By registering projects against workflows you can quickly create a set of commands that will be run against each project. Check out the Github page here or grab the gem from Rubygems.
I wanted to have a simple static gallery to share pictures with my family. So, this sunday, I released gallerby (demo).