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.

No Querying Views script

I just released a script called No Querying Views. Once installed within the config/initializers directory, it will raise an exception every time one will try to fetch data from the database within a view. I used it to replace ActionController::Base in favor of Michael Sofaer’s Vanna::Base, believing “that all web requests should operate as logical clients of a JSON API” (and it was not possible to move until the views were lazy loading data across the application).

@Bragi: use a before_filter to load the list for the sidebar so you don’t have …
@Jan : the script doesn’t do much, it will just raise an exception any time you…
Isn’t New Twitter an example of such paradigm?
@ncr Yes, they focused on delivering a reusable API that exposes JSON fragments…

Thinner (Varnish cache purging)

Thinner is a new ruby gem that purges Varnish cache over time. It’s useful for keeping your caches warm after deploys. Would love feedback and/or thoughts.

cat urls.txt sed ‘s/^(.*)$/url.purge \1/’ nc -q1 127.…
That works dandy as well. Thanks for the feedback.
have you seen https://github.com/schoefmax/klarlack ? …

Radix will convert!

I just released Radix v2.0. The new version is a nearly-complete overhaul of the old version, with much improved and more intuitive support for base conversions via Radix::Integer, Radix::Float and Radix::Rational.

How Does One Use Design Patterns In Ruby?

Chee Yeo introduces you to Design Patterns in Ruby and how to use them in your own Ruby code. A guest blog post on RubyLearning.

The link seems to be broken
I don’t think it’s a problem with the link, per se; the entire http://rubylearn…
…and now it appears to be back online.
Sorry guys, we have had serious issues after the sites got hacked last Wednesda…

Redirect non-www requests the Rails3 way

The new Rails3 routing features allow you to do some cool new things. One of which is to redirect non WWW traffic to a canonical domain without having to create rack middleware or configure your web server. The lack of available server configuration on Heroku was an inspiration for this approach.

Women in high-end circles employ a hunch for virtually any thing that is high q…
Loading older posts