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.
Tests and Docs makes better code
I just wrote an article about How I write Tests. I don’t use TDD. Instead I follow a process that comes much more natural to me.
Moving From Mephisto To Jekyll
A journal of my move from Mephisto to Jekyll, a static site generator tailored for blogs. Covers migration of Mephisto data, using SASS, and some HTML5/CSS3 techniques.
Hacked pop3 for epost.de -> rube_post
Get your mails from epost to the commandline or gmail with rube_post (using machanize + nokogiri)
Render views and partials outside controllers in Rails 3
Short blog post about using AbstractController::Base to render views and partials from within models, libraries etc.
Improved distance_of_time_in_words with dotiw gem
DOTIW gem improves the ActionView distance_of_time_in_words Date Helper. [more inside]
Blogcast Works
I made a git account for ror_blogcast. This is based off Tian Valdemar Davis’ blogcast. I changed the migrations so they work now, now my plan is to add tests and move the logic to the models. Enjoy! Dave
HTTP Basic Auth for Clearance
I have released clearance_http_auth to enable simple, instant HTTP Basic Authentication for applications using Clearance to authenticate users. It’s a combination of middleware and a current_user helper method override, and it’s very easy to set up and use.
Getting to Know the Ruby Standard Library - Abbrev
Once again, I walk through an often ignored part of ruby’s standard library. This time around, we look at how Abbrev works and what it does.
Hash Tricks
Here are some handy Hash tricks that take advantage of Hash’s initialization block.
A tweet drawing a Christmas tree
A Ruby code drawing a Christmas tree in less than 140 characters. Here is the Tweet ! Can you do better?
LRUG Podcast Episode #4: Alex MacCaw
I just released Episode 4 of the London Ruby User Group (LRUG) podcast. In it I interview Alex MacCaw prolific author of Juggernaut, Holla, Bowline and many other Ruby and JavaScript projects. Go take a listen and let me know what you think!
rails_best_practices 0.6.0 released
I just released rails_best_practices 0.6.0, I did a lot of refactorings, created rdoc webiste and google group, check out the announcement here.
Little known fact about Memoization
I just wrote a short blog about using blocks with the memoization operator. I find that this a little known fact and the post demonstrates how you can more well intentioned code.
Pragmatic Rails: Thoughts on Views, Inheritance, View Inheritance and Rails 3.0.4
Rails 3.0.4 will have view inheritance. This post discusses how this advanced technique can help having cleaner views, how it works in Rails and how to get real object-oriented partials with inheritance and overriding.
Creating a GSSAPI client/server app for Ruby
Just published a blog post on creating a Kerberized client/server app in Ruby http://bit.ly/blog_rubygssapi
Create FFMPEG processor for Carrierwave in Rails 3
I have started using Carrierwave for my file uploads and wanted to create my own plugins for it. The first one I have done is an FFMPEG processor. The blog post is on my site. Hope you all enjoy!
Standalone Widgets in RoR with jsonp
I just post about creating standalone widgets with RoR, Apotomo, and javascript(jsonp). The post is here and you can check the source on github and implementation here
Sinatra and SQLite on 64MB RAM
I just finished blog post Sinatra and SQLite on 64MB RAM.
Building Modular Web Apps with Rack & Sinatra
Case study, on how I developed OpenNebula’s Admin Tool during the last Google Summer of Code, using Rack & Sinatra.
Code Reading - The Barista Gem
Here we continue practicing reading other people’s code by looking at the Barista gem. http://www.arailsdemo.com/posts/32
Ottoman is another Object-Document Mapper for CouchDB
Ottoman is an object-document mapper for CouchDB which is designed to play to the strengths of Couch rather than trying to provide an ActiveRecord-like feel. I wrote this code a couple of years ago and never quite released it, but it’s fairly complete and reasonably documented. If you’re curious, check it out.
Getting to Know the Ruby Standard Library - TSort
We will take a look at ruby’s TSort which allows us to untangle dependencies and do some interesting graph processing. Well worth a look if you have never heard of TSort since you already have it installed.
Access to Modified Closure in Ruby
A closer look at blocks in Ruby and how they can sometimes produce unexpected results.