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.
View Abstraction in Integration Tests
Interesting post on an object-oriented approach to testing the view layer.
Building a HTML url with parameters from a hash, DRY
Been breaking my nose on this for a good hour. Getting a splat hash argument into a html url to dry things up.
Mary Poppins, Infinity, Ruby, and Rails
In a case study on using Ruby’s infinity with Rails I discuss what peculiarities to be aware of and which trade-offs to expect.
rails-sh 1.4.0 is released
I have just released rails-sh 1.4.0! Have you ever been frustrated with SLOWNESS of rails commands? rails-sh is a small shell where you can run rails commands much faster. For example, you can run a command like ‘rails generate’ or ‘rake routes’ in few seconds. This version started to support bundler. enjoy!
Ruby performance in Rails dev environment
I just finished comparing the performance of Ruby 1.8.7, 1.9.2, Jruby 1.5.6, 1.6.0.RC1 and Rubinius 1.2.0 in the Rails dev environment as you scale to larger and larger web apps. When you get up to several megs of code you can get a 5x or larger difference in response time (3 seconds vs 15 seconds) between different ruby implementations.
Rails Test Prescriptions now at printer
Rails Test Prescriptions is now being printed, with an expected ship date of Feb 17th. More details at the railsrx blog.
Beautiful logging for your Ruby on Rails application
Improving the cosmetics of your Rails application log is really quite easy. Let me show you a simple way to gain timestamping and color-coded severities.
30+ New Ruby 1.9 Features, Tips & Tricks
Ruby 1.9 packs in a lot of new and improved features at all levels: an overview of 30 new features, tips & tricks to help you take full advantage of the new runtime.
THIS WEEKEND! NYCamp - A RUNCONF in NYC, Free 3-day hacka-learna-conf event
The organizers of the New York Ruby Meetup are organizing NYCamp, a RUNCONF (Ruby Unconfrence) in NYC THIS weekend. It is a 3-day event where there will be some open-source-hacking, some challenges/games, and some UN-Conference style presentations. Check out our website (hastily put together :)) and register either on our website or on our meetup page. So come on over, have a good time and get inspired. See you THIS weekend.
When to use alias_method_chain
Everyone knows that alias_method_chain is evil. Sometimes it’s a necessary evil. Here’s a quick post explaining when the latter is the case.
awesome_print 0.3.2 released
Maintenance release that adds an option to sort hash keys and improves overall Ruby and Rails compatibility. Please see the Changelog for details.
Integration testing Twitter OAuth with real data
Your integration tests should follow the same path as your users so why fake the Twitter OAuth negotiation? Follow the steps in testing twitter oauth with real data to ensure you’re OAuth code actually works.
Using state machine and introspection for automatic emails
A simple write up on using the state_machine gem plus introspection to automatically send emails on each transition.
"Using JRuby" book now shipping
The Using JRuby book by Charles Nutter, Nick Sieger, Tom Enebo, Ola Bini, and Ian Dees is shipping now.
Introducing ChiliProject – A community fork of Redmine
Long-term members of the Redmine community have launched ChiliProject, a fork of Redmine. ChiliProject is actively looking for additional contributors and community members.
Ubiquo running on Amazon AWS Elastic Beanstalk + RDS + S3 using Jruby
We’ve tried the new Amazon Elastic Beanstalk service with the upcoming 0.8 version of ubiquo and wrote a guide about it. Deploying ubiquo apps to AWS Elastic Beanstalk. More info here.
Find_or_Factory
Ever wish you could do find_or_create with the factories from FactoryGirl? I just wrote a method that lets you do something very similar: Find or Factory Method for Tests.
London Ruby Podcast: Episode 5
Episode 5 of the London Ruby Podcast is now available. [more inside]
EduRuby: new discussion group for Ruby-minded educators
Hi, Aaron from Everyday Rails here. At my day job I’m one of a tiny group of Ruby developers at the University of Kansas, and I’m hoping to find other developers working in education. I’ve created EduRuby, a Google Group for Rubyists working in the educational field (developers, academics, system administrators, instructors …). If you fall under that umbrella I hope you’ll join–I’m interested in exploring how we use Ruby to support learning and building connections between Ruby-minded educators. Thanks for your time–
A Jekyll template using Responsive Web Design
Making a site responsible for various displays (desktop, tablet, smartphone, mobile) is easy as adding 3 lines of code to your HTML’s HEAD section. You can easily learn how-to by reading this article or check out the source code of this Jekyll template supporting mobile devices.
Firefly 1.3.0 URL Shortener released with custom short codes and optional QR Code support.
I just released verion 1.3.0 of Firefly, a URL Shortener app written in Sinatra. Now with optional QR Code support and custom short codes! Deployment to Heroku is a breeze. Announcement, Github