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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Frozen Rails 2014 CFP, keynote speakers, and registration
We’re looking for talks for Frozen Rails 2014. [more inside]
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.
The Elements of Style in Ruby: Length vs Size vs Count
I just wrote an article about the differences between length, size and count in Ruby.
An alternative to Rails::Engine
Ruby on rails come with loads of feature to help you build your project in a modularized fashion. I’ve wrote a post on how to use those features to in your project. [more inside]
Why Inch does not use percentages
I just wrote a blog post about why Inch uses grades instead of percentages. [more inside]
Implementing Specification By Example
Some tips when implementing your examples
You could be building apps with Ruby too! RubyMotion App Spotlight - Service Status by Odin Dutton
Whenever possible, I’ll be doing email (and maybe some video) interviews of people in the RubyMotion community who’ve put something out there in the iOS or OS X App Stores. [more inside]
A jQuery like gem for helping us make iOS apps in Ruby! (and a screencast on how to use it)
RMQ is a great gem for giving us a jQuery like tool for doing RubyMotion development. Learn all about it in Episode 11 of MotionInMotion.
Form Objects in Rails and a small gem called SimpleFormObject
I wrote this blog post on Form Objects in Rails and created this gem called SimpleFormObject.
EAV implementation for ActiveRecord
The new version of hydra_attribute has been released! This gem allows you to create, rename or delete attributes for your model in runtime, search by them and many more :) [more inside]
Ruby in German
I have just released Deutsch.rb, which lets you reference global variables such as $_ using less cryptic names.
Ruby's Functional Sweetness and Modeling Clay
Want to transform your data like a pro with Ruby? Check my blog post: Ruby’s Functional Sweetness and modeling Clay
Build a Ruby Gem Book Update
I posted an update about my Build a Ruby Gem Book. I’d love feedback on the chapter list!
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.
ruby-install 0.4.0 released!
ruby-install 0.4.0 has been released! Added support for installing mruby, the --rubies-dir option for installing into ~/.rvm/rubies/ or ~/.rbenv/versions/, the -j,--jobs option for parallel compilation, and more.
Rails Flash Partials
Just released an episode on youtube talking about using flash messages in partials. Rails Flash Partials.
How Much Time Does Rendering a Partial Really Take?
I’ve heard from some people that are worried about breaking apart large Rails views into smaller partials: How much time does rendering a partial really take? Will the performance impact of calling the partials outweigh the benefits in code readability? [more inside]
Testing Sinatra 'helpers' with RSpec
A short blog post with code examples about testing Sinatra ‘helpers’ with RSpec.
Vexor - awesome CI for Ruby, Clojure and Scala
We are pleased to announce a new continuous integration service - Vexor CI. [more inside]
Putting Ruby on Rails on a diet
Another short post of mine, this time about making your Ruby on Rails application more lightweight.
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.