RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Manually Invoking a Rails Sweeper

Let’s say you have a Rails app, and that app has a Photo model, and that photo model has many Destinations, and the destination pages are cached to disk, and when you update a photo you need to expire all of the current destination pages that photo is currently associated with. Here’s how.

Passenger is 1.9.1 compatible!

Phusion has done some great work (including patching fastthread and ruby-sqlite3), and Passenger is now the first “serious” server to run on 1.9.1. Read all about how they accomplished it at their blog: Getting ready for Ruby 1.9.1.

Again, Phusion show us how it’s done. I’ll have to have a play around with rub…

Alternative Prawn handler for Rails

Introducing Prawn-handler, an alternative to prawnto for clearer PDF view code while retaining regular access to instance variables from the controller.

hi, there, You might want to update the link to “prawn handler” to http://gi…

Shoulda macros for testing ActionMailer

You’ve been missing some shoulda macros for your ActionMailer tests. Yes, the ones that let you say “should_have_to_recipient” or “should_have_subject”. The aptly named shoulda_action_mailer has those macros, and few more. It’s way incomplete in that you can’t expect parts or content types or other special things; but it’s a start. Add ‘em if you got ‘em (more macros that is).

Sinatra's Hat 0.1.1 (the rewrite)

Sinatra’s Hat, the library that lets you create a RESTful Sinatra app in 1 line of code has been completely rewritten, wit a new and improved API. Example mount Article. And that’s it. It works with ActiveRecord out of the box, but can support any ORM. It also supports nested resources, the ability to specify actions to be protected via basic auth, custom formatters, and a sweet DSL for specifying custom flow control.

Plenty of Stats

plentyofstats Using Ruby to scrape the free dating site Plenty of Fish for demographic info. Find out which city drinks and smokes the most! Full source and data at github.

Ooh, thanks for posting - still have it open in my browser :-)
Who follows this up by writing an automatic dating bot?

Ruby 1.9.1 released!

It’s just been announced, 1.9.1 the first stable release of the Ruby 1.9 series has been released:

Let the testing and patching begin. Also, the bcrypt gem is still broken wit…
Just done an announcement at Ruby Inside that includes a mirror of the download…
The release is also mirrored out through the Ruby project on RubyForge. …
Very useful to know for future :)

Index and Search Your Local Rdocs with Croc

Croc indexes your local gem rdocs and generates a web page you can use to search and access them, similar to gotapi.com. It’s handy because it covers all your gems and is available when you don’t have an Internet connection, like when on a submarine. sudo gem install croc and then run croc. More details on my blog.

grrid: a Prototype.js based javascript grid

I’ve recently started work on a pure javascript spreadsheet-like grid control called grrid, and I’ve put an early version on github…

BTW, checking out the Leaderboard (see header), if you left a few comments you’…
RE demo: Good point. I’ve not had the chance to set up the server-side part of …
Just realised I wasn’t logged in for my last comment! Peter, what’s the point …
Some people find it motivational. It was actually requested by a user. Official…
Loading older posts