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.
Simple Rails 3 Login Generator
I created simple-login that is a rails 3 generator. It creates user class with signup, login, logout and password reset features. It is very simple to use and it generates routes, controller, model and view files so you can further customize. Passwords are salted and protected already.
Pry 102: Advanced Features
Give this link a click if you are interested in learning more about the advanced features of the ruby REPL Pry. Pry 102
Pkgr : Easily build a debian package out of your Rails app
I just released Pkgr, a gem that helps packaging a Rails app into a debian package (tested on Debian Squeeze for now). It’s still early days, but I’m interested in feedback.
Kata 1.1 Released
Katas are well known in the ruby community as a great way to practice the language. The kata gem provides facilities to make the practice easier. Writing a kata is as easy as writing an rspec test while taking it is a step by step process with github integration baked in. With this release you don’t have to create a new repo but instead just add the project tree to an existing one. Check it out and have a look at the code katas project for some samples to test yourself against!
Deepworld, an EventMachine-driven minecraft-esque MMO, kickstartering & launching public beta
Deepworld is a cloud-based minecraft-esque MMO that’s been under development for seven months. We gave Node.js a shot at the beginning but quickly realized EventMachine offered a much easier learning curve, not to mention a more mature ecosystem. Read more
directory_template gem released
I released the directory_template gem, which allows you to generate directory structures from a template, optionally processing paths (variables in the path) and contents (e.g., render ERB templates). You can write and use your own processors too (for both, path and content manipulation). This is useful if you want to template e.g. Projects, or want to build something akin to rails’ generators. The project is - of course - found on github, and the documentation is available online.
TorqueBox 2.0.2 Out
It looks like the TorqueBox project released version 2.0.2 Check Out the announcement. It smooths out some bugs and adds support for JRuby 1.7.
Check out Bloggy to add a Jekyll blog to any Rails application
Introducing Bloggy: A simple way to add a Jekyll blog to any Rails application, awesome tool.
RubyMotion brings serious Ruby development to the iOS world
You can now develop iOS applications in Ruby.
Firebase Ruby Gem Released
I just released firebase, a Ruby gem for updating your firebase apps in real time (video linked). If you love Firebase, you’ll love this gem.
SpreeConf Europe Aug 22-23 in Dublin, Ireland
The e-commerce team behind the popular Spree project is pleased to announce its first ever conference in Europe. SpreConf Europe will be held on Aug. 22-23 in Dublin, Ireland. Two full days of training and talks on Spree, Rails, Backbone and Coffeescript as well as a few non-technical talks from industry leaders.
Coding Adventures - A Ruby Newsletter
I recently decided to start a newsletter about Ruby. I’m new to working on my own real projects. It is up and running but missing one thing: you! If you would like to know what I do, subscribe here!
TaskJuggler 3.2.0 delivers improved Scrum support
TaskJuggler is a modern project management software that uses a DSL to capture all project data and features a scheduler with automatic resource load balancing. This release adds a new report type to track any task or resource attribute over time. This can be used e. g. to generate burndown charts for your Scrum project. The source code is hosted on GitHub.
Ruby tricks: Array syntax
Learn a nice Ruby trick! The Array method is a nice way to handle special cases about arrays and clean your code.
Writing MiniTest extensions
It’s pretty easy to extend MiniTest. Below I show you how to add very simple implementation of expect {}.to change {}.by(x) from RSpec, in 13LOC.
It should work out of the box on Ruby 1.9.
Upload CSV in Rails 3 and test with capybara
Again a new take on an old problem, uploading a CSV file that will alter the structure of your data and testing it with Capybara. You can read the full post on wealsodocookies
use after_commit
Most developers use AR callbacks after_create/after_update/after_destroy to generate background job, expire cache, etc., but they don’t realize these callbacks are still wrapped in database transaction, they probably got unexpected errors on production servers. I wrote a post to suggest you that you should use after_commit for those callbacks that no need to execute in one transaction.
Travis CI announces Pull Request support
Travis CI just announced Pull Request support.
Canard makes role based authorization simple in your Rails app.
I just launched Canard 0.3.1. Canard adds role based authorization to your Rails applications. Extending the popular CanCan and RoleModel Rubygems Canard lets you define abilities for roles under your app directory making authorization a first class citizen in your application. Canard also adds some simple scopes for finding users based on their roles. Read more
Seeds, a quick and easy way to populate your db/seeds.rb file with existing data
I just launched seeds, a ruby gem for populating your db/seeds.rb file with existing data from your Models. Allows you to include Models, exclude Models, and exclude certain fields in your models from being added to the seeds.rb file.
Spree 1.1.0 Released
We’re pleased to announce that Spree 1.1.0 has been released. We’ve been hard at work the past two months getting this release ready. This is also the first Spree release to support Rails 3.2.×. All it took was 790 commits by 34 different authors (including many first-time committers.) Read more
OAuth with OmniAuth and Github
I blogged about how to use OAuth with OmniAuth and Github
Sleep helper for your async request tests
Small helper that we have found useful
Sadie Eachers Explained
I just wrote an article explaining how Sadie provides another data gathering optimization path via “eachers.” This follows a flurry of commits on the eacher code that fixed a number of bugs relating to multiple eachers hung on a single primer and eacher-on-eacher-provided-key/val pairs, so an upgrade is advised for early eacher adopters.
Legacy Concerns in Rails
The cats out of the bag, Ruby isn’t immune to legacy code problems. But we can make our Rails apps erosion resistant read more.