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.

Search and Filter Rails Models Without Bloating Your Controller

Searching, sorting, and filtering in Rails controllers can be a pain. ElasticSearch and Solr are great, high-powered solutions, but are really big dependencies for a small app. Luckily, Rails includes scopes, which can provide you with a lot of what you need for simple searching, filtering, and sorting. If you take advantage of scope chaining, you can build the features you want without taking on big dependencies or writing a bunch of repetitive search code yourself.

Command Line Reporter 3.3.0 Released

The latest version allows for encoding table with standard ascii or utf8 characters. Check out the wiki to see examples of nicely formatted tables. As always The gem is available on rubygems.org with source on github. For those not familiar with “the reporter”, it provides a ruby DSL for writing reports with built in features for progress reporting and table formatting. It is very handy for system level and data reporting scripts.

Build an OS X app with Ruby! Complete series!

I have just released the final part of the four part series about creating OS X applications using RubyMotion! A great starting point for you to step into iOS and OS X programming with Ruby. I’m so happy to say I’ve had heaps of people say they’ve found a huge interest in RubyMotion since reading these posts! [more inside]

sportdb gem Adds Grounds (Stadiums/Venues) for Games (Matches) n Events (Tournaments)

Hello, The sportdb gem (and its open public domain datasets such as football.db) now includes a new grounds table (for stadiums/venues/etc.) that lets you add cities to matches or tournaments, for example. Using the World Cup event in Brazil 2014 you can get all twelve stadiums by using: event.ground.count # => 12 or to get the city for a game use: game.ground.city.title # => São Paulo and so on. See the World Cup 2014 fixtures, for an example for plain text fixtures with stadiums included. Or see the stadiums page in “The Free World Football Alamanc”. More info at the project site. Cheers.

Kata 1.4.0 Released

There is a new addition to the kata gem DSL. Questions can be asked inspiring further thought on the solution journey. The inspiration came after a brief twitter discussion with @pragdave. Have a look at the wiki for complete information on what the gem provides and how to use it to improve your ruby programming skills. Also checkout the companion code katas project if you want to contribute.

Loading older posts