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.
Scoped Mass Assignment in Rails 3.1
A Quick Overview on how to use scoped mass assignment and why you should be using attr_accessible.
Print Stamps With Ruby
I just released Stamps, a Ruby gem for printing postage stamps and more. Read more about it in the blog post
Why Cucumber sucks and I still love it
As this blog post explains, it’s all about abstraction.
How to create a shopping cart.
If you are interested in how ror_ecommerce’s cart works or are just creating your own cart, you should take a look at the video i just created. I go over the cart and how the cart_items are transferred from a cart item to an order/order_items.
awesome_print gem 0.4.0 released
One of your favorite gems is getting better than ever! The new version adds HTML color option for use with Sinatra, supports formatting of MongoMapper documents, and more. Check out Changelog for complete details.
Minimalistic state machine approach allowing multiple state attributes at the same time.
I just released a new gem with state machine for rails, it uses minimalistic approach, no custom DLS, only one callback. State attr - try it if other state machines are to big for you.
Cucumber For The Command Line - Exploring The Aruba Gem
We use the Aruba gem to aid us in developing a custom Cucumber formatter.
Print Stamps With Ruby!
I just released Stamps, a Ruby gem for printing postage stamps and more. Read more about it in the blog post
Search Your Gmail Messages with ElasticSearch and Ruby
Get personal with ElasticSearch and feed it with e-mail from your Gmail account! Grab the source code or read the accompanying article.
rails_best_practices 0.9.0 released
I just released rails_best_practices 0.9.0, it supports remove empty helpers check, see more here.
KPI: gem for gathering statistics from your app
I just created KPI gem. It makes collecting data for reports easy. More about that in the blog post
BostonRB Presentation Archive - 100+ Presentations, 40+ videos
BostonRB has put together an archive of almost every presentation it has hosted since 2006.
PopraviMK project open-sourced
I have open-sourced PopraviMK project (both web and mobile applications). If you are looking for some good code examples on using tools like: cucumber, rspec, shoulda, factory_girl, pickle, email_spec I would suggest reading the source code. And, you can also read the source code of the mobile application (Android) which is built with Titanium mobile platform.
asset_id 0.1.5 released with caching support
I just pushed v0.1.5 of asset_id (a library for uploading rails static assets to Amazon S3) with caching support so any assets that haven’t changed won’t be uploaded.
Logging who called redirect_to
Here’s a short post that might save you a headache (or two) the next time you have to go spelunking in your Rails server logs.
Rails 3.1 Templating with Sprockets
I was faced with the question of getting JS Templating in Rails 3.1 - here’s how I did it with Sprockets and Tilt: Rails 3.1 Templating with Sprockets.
Better autocompletes with Fuzzy Matching
An introduction to Fuzzy Matching and how to improve an autocomplete widget to show the most relevant items. [more inside]
Ruby Rogues talk about Ruby VM's, concurrency, and implementing Ruby
If you liked the crazy antics of the panel in the first Ruby Rogues podcast, you’ll enjoy the second. Joined by Evan Phoenix (Rubinius developer) we talk a lot about the actual implementation of Ruby. You can also now get the podcast in iTunes.
rack-www gets updated with more options
I’m releasing a new version of rack-www. Now it allows you to redirect with or without the www and it’s also possible set a message to show while redirecting.
Active Admin - The missing administration framework for Rails apps
We just launched Active Admin, a brand new administration framework for Ruby on Rails applications. Check out the Website, Live Demo, Documentation and Github Project.
Hubscovery - a better git repository search
scratching an itch, github repository searching is pretty bad, so I hooked into their API and intersect some hashes to serve up results that I think people want. See http://hubscovery.com
Substance 0.2.1 released — Open Documents for the Web
We just released version 0.2.1 of Substance.io. It adds support for move content operations along with UI improvements and bug fixes. Enjoy!
Receiving e-mail directly into Mongodb (or other db)
Often you need to receive email which then will be available to your Rails application. Usually it’s done with yet another middle-tier, such as IMAP server and IMAP client. Why not cut the middle man? ReceiveD is a simple LMTP (almost RFC2033 compliant) daemon, which can receive e-mail from Postfix and save it directly to the Mongodb document database. [more inside]