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.
rails-footnotes 3.7.2 has been released.
rails-footnotes 3.7.2 has been released. Сompletely rewritten QueriesNote and bug fixes.
voteable_mongoid 0.7.4 released
Add indexes and more helpful functions. More details here.
Tire, a gem for smooth ride with ElasticSearch in Ruby & Rails
The Tire gem for ElasticSearch was released. It focuses on Ruby-like API for communication with the ElasticSearch server, comfortable DSL for constructing search queries, and full compatibility with ActiveRecord/ActiveModel. Check out the documentation or kick the tires and generate a fully working Rails application in one line: $ rails new tired -m http://gist.github.com/raw/951343/tired.rb
data_migrate
I just put data_migrate into the wild. It’s a gem that will allow you to migrate data in a Rails app as you would schema changes. Check out my post or the Github repo for more details and usage. You can also find it on Ruby Gems.
Using ActiveModel::Name to simplify URL generation and preserve use of polymorphic_path
Love using polymorphic path to build URLs, but running into problems due to resource route names not matching up with your model name? I just blogged about a technique using ActiveRecord::Name to simplify RESTful URL generation. This is also very helpful if you are using namespaced models.
Rails Hosting Comparison: Heroku, EC2, Blue Box Group
I recently put together a Rails hosting comparison of Heroku, EC2 and Blue Box Group. I attempt to compare prices on an apples-to-apples basis as best possible (hint: EC2 wins), and analyze the circumstances in which each host is a best fit.
ANSI 1.2.4: Lining up the Columns
New version of ANSI library now officially supports columns.
Check it out and gem install ansi.
Formatting international phone numbers with Phony
If you’ve got a lot of different international phone numbers to format, Phony might be the thing for you. Read more about it in this blog post. More countries/contributors welcome!
The local optimum of Test-Driven Development
Following TDD, we developed unsweet Ruby code. We took a step back and escaped the local optimum of Test-Driven Development. A case study on basics.
Practical threading with ruby
In which I create a link checker in ruby then work through the process of speeding it up using threads.
Monitoring Phusion Passenger with Monit
I just wrote a Rails plugin which makes it possible to monitor Rails instances, which run under Phusion Passenger, with Monit. More info in my blog and source: https://github.com/romanbsd/passenger_monit
Using Mongoid For Your Rails Views
Following José Valim’s suggestion in his book “Crafting Rails Applications,” we figure out how to use Mongoid to store our view templates.
2011 Boston-based Rails Developer Salary Survey results
Curious how much Rails developers make in Boston? So was I! Check out the survey results.
TorqueBox 1.0.0 Released
The TorqueBox team just released TorqueBox 1.0.0. TorqueBox is a true application server for ruby apps, based on JBossAS and JRuby.
Supporting the Ruby Mendicant Experiment
I would like to keep working on Ruby Mendicant University and on writing open source code and learning materials full time. I’m trying out the idea of community subscriptions: you give me a few bucks a month, I build awesome stuff, and then I tell you about what I’ve been up to!
Using Emacs for Rails development: The perfect setup
I’ve just updated the article Using Emacs for Rails development: The perfect setup that was somewhat popular three years ago to reflect the current state of Ruby/Rails related Emacs technologies.
Getting nice bash aliases with Ruby
I just published a tiny post about how getting nice bash aliases with Ruby.
Programming languages worth learning
An interesting blog post discussing briefly the most influential/interesting/practical programming languages.
Assertive Expressive 1.7.0: Better Integration API
Just released a new version of AE, aka Assertive Expressive, a modern assertions system that can be used with any test framework. This release improves the API by moving AE’s Assertion and Assertor classes into the AE namespace where they belong. It also improves how test frameworks tie into AE, doing away with the use of Kernel extensions for the purpose, and utilizing a toplevel constant (Assertion) to dynamically reference the exception class used by a test framework to raise assertion errors.
How we shaved 2 seconds off our Rails start up time
A bit of ruby-prof spelunking on our rails 3 application paid dividends.
Automated Backups With rdiff-backup
I got this working in 5 easy steps and so can you.
Padrino 0.9.25 Released: Slim and Erubis, Caching, and Fixes
Padrino is a framework of helpers for building powerful webapps upon the Sinatra webapp library. And now, the Padrino team has just announced Padrino 0.9.25 which, it seems, is a more significant release than the point update implies. Updates and improvements include the all-new “Padrino Cache”, full support for Erubis and Slim rendering, support for unobtrusive JavaScript handlers, and a revamped routing implementation.
A (successful) git branching model
Rodrigo Flores from Plataforma presents a (successful) git branching model.
Owning Rails: Marc Andre Cournoyer's Rails Masterclass
Marc Andre Cournoyer (of Create Your Own Programming Language and Talker fame) has unveiled his “Owning Rails” masterclass. It’s going to be in May and costs money but should offer an awesome, intensive Rails learning experience. You can find out more at OwningRails.com too.
NextMuni gem released
I’ve just released the NextMuni API gem. It allows you to access San Francisco bus information provided by the NextMuni service. Use it to add real-time bus schedules to your ruby application.