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.
Getting OmniAuth To Work With Memcached
I ran into an issue when trying to get OmniAuth’s OpenID Strategy to work with memcached (so it can work on Heroku.) In case others are facing the same problem, here’s a solution I came up with.
Explaining Ruby On Rails Hosting
For a workshop on Rails hosting/deployment for a hosting company, I’ve created number or Sprinkle recipes to explain and install various stacks. If you are a consultant, teacher, evangelist or just curious, you may find some use for them. You’ll find the recipes in a Github repository, while some background can be found in an accompanying article.
Rails 3 Remote Links and Forms: A Definitive Guide
I couldn’t find any definitive guides on Rails 3 remote links and forms, which show a complete example from beginning to end, so I wrote one. [more inside]
Rails Misapprehensions: CRUD is not REST!
Here’s a short discussion about the differences between CRUD and REST and how it helps understanding REST if you separate these two concepts.
Video: Managing Branches with Git
I’ve had a few people ask me about how to manage branches in Git, so I made a short <a href=http://teachmetocode.com/screencasts/managing-branches-with-git/”>video.
Rails 3 subdomain validation
I just posted a quick code snippet for Rails 3 subdomain validation using the ActiveModel::EachValidator
Rethinking ActiveRecord/ORM Validations
ActiveLayer (http://github.com/adamcooper/active_layer) is a gem that can help you organize and cleanly apply the myriad of validations that your objects require. It may help you rethink your validations.
BAM : Rails 3 Generator/Generator
Here’s a script I wrote, bam it takes your existing rails app and convert the parts you want into a Rails 3 generator. There is also a 5 min. screencast showing the script in action.
The No-Holds-Barred RubyFlow Suggestions Thread
It’s been at least a year since I invited everyone to have their say on where RubyFlow should be going (or not going!), what features are missing (or should be removed!), and so forth, so here we go. Post a comment here spilling out anything you want to say, suggest, praise, or criticize, and I’ll read them all (and maybe even throw in some ideas of my own).
Rails session protector
Due to last rumors, that session hijacking is now as easy as installing plugin for firefox (firesheep), we’ve created simple Rails plugin, that will help you protect your users. It’s basically a proof-of-concept, but it works very nice with Devise. Check it out on Github: session_protector.
Cockatoo, a simple chat server using EM and the Long Polling technique
We’ve just open sourced a simple chat server we wrote a few months ago, Cockatoo. It’s using the fantastic EventMachine (yep, we know that node.js is the new kid in town, but well…). Several “push” technique exists, but we focused on Long Polling as it’s very easy to setup, be it on the server or the client side. We’ve also made a little presentation on “Long Polling with EventMachine”.
Peter Cooper Interview
I posted an interview I did with Peter Cooper last week. It was great to talk to him about Ruby, writing his book, building a social media presence, and ways we can contribute to the community.
mongoid-eager-loading gem released
I just released my new gem mongoid-eager-loading, adds the eager loading feature for mongoid.
Slides: Rubygems — behind the gems.
I just talked about rubygems, its infrastructure and problems (no mirrors) @ our Ruby User Group München meeting: Slides on slideshare
Background Processing using Resque/Redis in a Ruby on Rails App
Learn how to setup resque in a ruby on rails app to run background processes.
Prologue release 0.3.0
Prologue provides a base Rails 3 application with Devise and Cancan for authentication and authorization. Roles are stored in the database with a HABTM relationship between the role and user models. You also get a basic admin to manage users. Prologue also rolls in all of the things we like to have setup in our apps like… haml, sass, jquery, cucumber, capybara, mocha, factory_girl, rspec, timecop, autotest, will_paginate, friendly_id, and hoptoad_notifier [more inside]
Kwartz 3.2.0 - a designer-friendly template engine
I released Kwartz 3.2.0. Kwartz is a designer-friendly template engine. It allows you to separate presentation logics from HTML file (similar to CSS). This release includes a lot of new features. See CHANGES for details.
Practical Uses of Ruby Blocks
I just put up a post called Practical Uses of Ruby Blocks outlining some real-world use cases for methods that take blocks.
How to serialize(marshalling) object in ruby
I wrote a small blog post on marshalling and demarshalling in ruby with use case in rails, please have a look at it and share your feedback link here
Do you know what’s new in Ruby 1.9?
Carlo Pecchia walks us thro’ the changes in Ruby 1.9 in this guest post on RubyLearning.
Mining RubyGems from Ore
The recent discussion about minimal gemspecs inspired me to create Ore, a simple solution for generating and building RubyGems, that uses a single YAML file to describe a project. Source.
RMagick needs new maintainers
The current maintainers of RMagick, the image manipulation library, are no longer able to maintain it and are seeking new maintainers to take over the reins. RMagick has its detractors but this is a high profile Ruby library, so if you’re feeling brave..
Bulkdom - An efficient domain name availability bulk checker
Bulkdom is an efficient domain name availability bulk checker that looks for the presence of DNS Records before querying the Whois Server to save on requests and lower the chance of temporarily getting IP banned. Multiple TLDs can be checked at the same time and available results can be returned in a simple array for further processing. It was extracted out of the awesome and upcoming domain name generator over at DomainWhirl. It’s the first gem I ever publish so be nice! ;)
Slim, a template engine, release (0.7.0)
This release of Slim is a core rewrite that takes advantage of Temple and Tilt to gain a lot of functionality/flexibility. To coincide with this release, Slim now has a dedicated docs site.
Editing file uploads with a Paperclip processor
Editing file uploads with a Paperclip processor, with a code walkthrough and working Rails 3 example app.