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.

Kill Trailing Whitespace With Code-cleaner!

I just released code-cleaner gem which is useful for removing trailing whitespace and adding missing \n. It has advanced whitelisting & blacklisting rules, so it’s clever enough to ignore your non-ruby files as well as your vendored dependencies. It can also add missing encoding declaration for Ruby 1.9 if you specify --encoding=[my-enc] and much more. [more inside]

CoffeeScript, a Little Language with a Pure Ruby Compiler

CoffeeScript is a little language with a Ruby-esque syntax that compiles into the good parts of JavaScript. The compiler uses vanilla Ruby classes for the lexer and code generation, and Racc for the parser. If you’ve ever wanted to use Ruby to experiment with a little language, it’s a good example to take a peek at.

Awesome! Integration with popular javascript framework and unit test is what re…

has_scope and responders released

We, at Plataformatec, just released two new open source tools: has_scope and responders, both extracted from Inherited Resources. has_scope allows you to quickly map controller parameters to named_scopes and responders is a repository of Rails 3 responders, which can already be used within Inherited Resources. As conclusion of this refactoring, Inherited Resources finally reaches 1.0. Read the blog post to catch up all changes.

Generating Thousands of PDFs on EC2 with Ruby

For about two months, we’ve been working on a static website that exposes the results of complicated economics model to non-economists. We decided to make the site static because of the overhead involved in computing the results and the proprietary nature of the model. We would simply pre-generate the output for all valid permutations of the inputs. However, on a single machine, we found it would take 30 hours of uninterrupted processing! Clearly, this was a job for “the cloud”.

That was a cool breakdown. Thanks for sharing.

Generic Actions in Rails 3

Yehuda Katz details advanced route methods added in the newly rewritten routes DSL. Essentialy, he talks about how Django’s generic views can be ported to Rails 3. Check it out here.

Loading older posts