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.

Seedbank 0.2.0 released.

Version 0.2.0 of Seedbank has just been released. Seedbank gives you more control of your Rails seed data, letting you break seed data into individual files with dependencies. You can seed different data for each Rails environment and share common seeds between environments.

tryit -- An alternative to Object#try

After a discussion on StackOverflow, we whipped up an alternative to Rails Object#try called tryit. This could be useful if you need similar functionality in pure Ruby or if chaining try calls annoys you. [Ed: moved code examples into comment]

tryit { "foo".revers.capitalize } #=> nil tryit { "foo".reverse.captalize }…

Rails Apps Composer 2.0 is out

The Rails Apps Composer gem gives you a tool to assemble a Rails application from a collection of recipes. Use it to generate Rails starter apps. Version 2.0 is out with a new Guide to the Rails Apps Composer Gem. If you build Rails applications that use popular gems or add features such as authentication, you’ll save time with the rails_apps_composer gem. Plus you’ll benefit from the collaborative problem-solving of Rails developers who face the same challenges.

Generating video thumbnails from YouTube and other video sites

This blog post explains how to easily embed thumbnails of videos from YouTube, Vimeo, Hulu, Animoto and Dailymotion. Thumbnails can be automatically resized, cropped and transformed to match the graphic design of your website. Face detection can be used for better cropping. All thumbnails are cached and delivered through a CDN for better performance. Ruby on Rails sample code included.

A workaround for isolated tests with local steps in Cucumber

Here’s a workaround for making Cucumber steps local inside a scenario. It’s simple and ugly, but it works. In the post, I argue that all this focus on writing Cucumber steps “correctly” is misplaced. I believe that if we allow steps to be local inside a Cucumber Scenario, this becomes irrelevant. I argue that domain language concepts should not be the responsibility of Cucumber Steps; instead, domain language concepts should be the responsibility of Cucumber Scenarios.

Databases & Rails: Week 8

This week we cover a veritable smorgasbord of topics in Databases & Rails: Week 8. We’ll talk about dealing with Nil and using Modules in Ruby. We are also going to cover importing data from a spreadsheet, rake, rubygems, bundler, and talk a little about Rail’s testing ecosystem. Enjoy!

A Secure, Reliable Event Tracking System for Online Betting using Rails

The French government legalized online betting in 2011 and created an Authority (named “ARJEL”) in charge of this new market. This authority enforces betting operators to follow a lot of technical rules; one of them being the tracking of all events in secure vaults. <a href=http://blog.tech-angels.com/post/28835549833/a-secure-and-reliable-event-tracking-system-for-online”>This article explains how Ruby was used to save us a lot of time.</a>

Loading older posts