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.

Remove 404.html, 422.html, etc from public dir. Render errors in your layout

Taking advantage of the new “exception_app” functionality in Rails 3.2 better_exception_app provides a easy way to help you delete 404.html, 422.html and 500.html from you public directory. Error messages are rendered dynamically in your layout. No more copy/pasting, no more jarring white screen. If desired, keep certain errors static for safety (i.e. 500.html). Includes a generator to make it easy to keep the look of your static errors in sync with the rest of your site.

Try mruby Today

Want to check out that mruby thing everyone has been talking about, well guess what you can try mruby today. Also a great introduction to building binaries (hint: if you don’t know what that means, you should read this article).

Lightweight API Services with Padrino and RABL

On the Crowd Interactive blog, Fernando Castellanos posted an excellent step-by-step guide for building lightweight API services using Sinatra, Padrino and RABL. If you are interested in a lighter and faster way to describe and create APIs with complex JSON responses using Ruby, be sure to check this post out.

Indeed, an article which shows a perfect use case for RABL. After reading such …

ITTIA DB SQL 5.5 Integrates with Many Popular Development Frameworks

The new ITTIA DB SQL 5.5 offers the most complete embedded data management experience, including high reliability, comprehensive security options, Qt user interface integration, Python and Lua scripting, JDBC compatibility, and replication. Embedded devices can also synchronize their local databases with Microsoft(R) SQL Server(R) and Oracle(R) on Windows and Linux servers. Evaluation copies are available at: http://www.ittia.com/products/evaluation

New Gem: Literate Randomizer

I wanted an easy way to generate good, random, near-english prose. There wasn’t a gem that made me happy, so I wrote a new one: Introducing literate_randomizer. (my blog post) [more inside]

Did you checkout some of the ngrams gems, such as raingrams? …
I did not. Thanks for the link :). I’ll take a look.
Raingrams looks great. Yours right? Nice work! I was thinking about trying some…
@shaebdavis correct, tri-grams and higher will produce more accurate text. This…

Forward, formally Showoff, is live.

Forward lets you share something running on localhost with someone across the web. [more inside]

I’m running the similar free service proxylocal. …
Thanks, both of these seem like they may be useful in the future. Bookmarked! :…
Loading older posts