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.

Krauter: A new router for Rails!

It’s less than five minutes old, but Jeremy McAnally has released krauter, a new router for Rails. It’s described as “Tiny (200 lines fool!), quick (adding routes so fast it hurts and competes with current router otherwise), and agile (OK…it’s not more agile. But it sounds cool.)”

Nice, even though I hope we move away from the crap hole Rails provides for rou…
I personally hate the style of merb’s routing DSL for a lot of reasons, even if…
I agree with Jeremy McAnally that method chaining can be icky sometimes, but it…

Ruby and Metaprogramming

Ruby is a lang that supports Metaprogramming effectively, and might be the best in that field. If you want to explore more on that topic, and how ruby can help you, then check this list of posts i wrote recently, i hope you will enjoy them

Nice tutorials, another great resource is the pragmatic programmers videos on m…

Why setting the default value of a Hash to be a Hash is wrong (use a block instead)

A quick tutorial on how to make the default of a hash a hash.

dude the text on your website is waaaaaaaaaaay too small, can hardly read it wi…
Indeed, I have to second that.
Noted. Thanks for the feedback. I’ve increased the font size on my site to m…
Interesting (and wierd!) language behaviour, ill look out for that when using h…

Sanitize: A whitelist-based Ruby HTML sanitizer

Sanitize is a new whitelist-based HTML sanitizer for Ruby. Using a simple configuration syntax, you can tell Sanitize to allow certain elements, certain attributes within those elements, and even certain URL protocols within attributes that contain URLs. Any HTML elements or attributes that you don’t explicitly allow will be removed.

CHAO</br>

Leverage ActiveRecord with Non-Database Backed Objects

ActiveRecord comes with a lot of nice things that aren’t dependent on having a database backed model. The most obvious example of this is the validation framework baked into ActiveRecord. Also, there are several plugins which add some useful behavior to ActiveRecord objects but don’t rely on having a database. Read more

Loading older posts