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.
Evax Gem: Another Ruby Assets Compressor
The idea behind it is to have a really simple library to compress your assets in the simplest way without any weird dependency (who said Java?). There are nice assets packaging systems out there but they have too many options for some cases. Sometimes, you just want to play with a pet project. I hope that Evax will help you!
Don’t “Push” Your Pull Requests
Don’t “push” your pull requests - good work gets “pulled”. Avoid the trap of working in the dark and being surprised when your contributions don’t get merged.
Github Concern: Easily integrate github service hooks with your app
I just launched github concern. Automatically integrate with github and easily associate commits to models and users.
Large-Scale Machine Learning with Shogun-Toolbox and Ruby
I posted some information on compiling and using Shogun-Toolbox in Ruby. The Ruby bindings for Shogun-Toolbox are listed as “proof-of-concept” but work well regardless.
Geo-Rails part 5: Spatial Data Formats
I just posted Geo-Rails part 5: Spatial Data Formats, the latest installment in my ongoing series on geospatial programming using Ruby and Rails. It provides an overview of geometry serialization, shapefiles, GeoJSON, and related topics, along with examples using RGeo.
How to zip/unzip stuff with Ruby and Zip library
Small tutorial on how to zip/unzip directories and how to access single files stored in those archives without unzipping whole packages. Read more
Rails Gem cookie_tracker for easily storing and updating user preference settings.
The cookie_tracker gem simplifies the task of keeping track of certain user preference settings, typically display related. It provides a nice instance method you can use in your controller to define these settings as a hash along with default options. Each setting is made available to your controllers and views as instance variables and stored in the users cookies. Any time a user changes the value and submits the form, the instance variables and cookies are updated to reflect that change. Settings can be stored in the session store if that’s what you prefer. You can override default values using an initializer file. Check out the Github page: CookieTracker Give it a shot and let me know what you think.
Doorkeeper - OAuth 2 provider for Rails
Doorkeeper is a gem that makes it easy to introduce OAuth 2 provider functionality to your application. We’ve just released the version 0.2!
Internationalize Haml-Templates with haml-i18n
I’ve created a gem named haml-i18n that makes internationalizing HAML templates easier and more readable. I introduce it in my blog: http://www.rails-troubles.com/2011/11/internationalize-haml-templates.html [more inside]
How to implement DCI in Ruby
In this post I show different ways of implementing DCI (Domain, Context, Interaction) in Ruby.
On Colorized Output - Get Comfortable with OptionParser
In this article I demonstrate how to make colorized output configurable using OptionParser. This is a followup to my last post about writing pipeline-aware Ruby scripts. I also add a few other configurable options and show some best practices.
Accessible Facebook Dialogs and Feed Posting With Ruby on Rails
After you’ve integrated omniauth, we show you how to start allowing your users to syndicate content via Facebook Feed Dialogs with Rails
Ruby On REST 2: Representers and the DCI Pattern
Read about how DCI and Representers in Roar work together. The post briefly describes DCI in Ruby and Rails and how this can be used to write REST APIs.
Rake for Rails Developers
I wrote a guide to writing rake tasks with emphasis on doing it within rails. It should be good for getting someone who doesn’t know rake up to speed. Rake for Rails Developers.
Bahia - Aruba for non-cucumber test frameworks
Bahia makes it easy to acceptance test your executables. It simply adds your executable and resulting stdout, stderr and process object as test methods. Just include it!
Have you deployed a wrong branch to production? try capistrano-confirm
Have you deployed a wrong branch to production? Or deploy some quickfix without code review. mostly, it would lead more bugs! Then lets try capistrano-confirm, you need to confirm you deploy by resolve a simple math question ;) [more inside]
033 Ruby Rogues Book Club – Eloquent Ruby
This week the Ruby Rogues discussed the book Eloquent Ruby by Russ Olsen.
Asset Pipeline Best Practices
I started writing some thoughts on how to best use the Asset Pipeline. I’m most likely going to write several more articles about the asset pipeline. Thanks for reading.
Global Day of CodeRetreat recap (with Sets in Ruby)
At the GDCR in Knoxville, I learned that what I didn’t know: using Sets in Ruby. Check it out.
ComfortableMexicanSofa (Rails CMS Engine) 1.6.0 released
I just released ComfortableMexicanSofa 1.6.0. Switched rich text editor to elRTE that allowed for easier image insertion integration.
Vendorer: keeps your vendor files & folders updated
Manage and update jquery-extensions / rails plugins / etc. with Vendorer (think ‘bundler’ for external files and folder)
City Programmer, Country Programmer - Building Rural User Groups
I just wrote a blog post about my experiences running a small, rural Ruby User Group! Hoping that other rural devs find it helpful in some way!
Set up Jenkins-CI on Ubuntu for painless Rails3 app CI testing
I’ve to add a CI server for the rails 3.1 project and I choose JenkinsCI. I googled around but all those articles posted, I couldn’t find any that details on how to setup Jenkins for a rails 3.1 app with Github hooked. So, I wrote a post on how to setup Jenkins CI for a rails app integrated with private github repository with all the bells and whistles.
rails_best_practices 1.7.0 released
I just released rails_best_practices 1.7.0, it supports slim template engine and mongomapper now, check out the changelogs here