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.
Xavier Noria: The Code Gardener
I just posted an interview with Xavier Noria on RubySource.
Automating Web Performance with mod_pagespeed
mod_pagespeed is a just in time (JIT) performance compiler for the web. This free and open-source Apache module automates all of the most popular web-performance best practices by dynamically rewriting and optimizing your website assets. A look under the hood and the architecture of the module within Apache…
The 4Cs: A Code Review Mnemonic
…while the coding community does have a considerable amount of scholarship and industry experience to draw from, it is rarely distilled into pithy mnemonics like the “4Cs”
Capistrano + Rails + Bundler + RVM + Unicorn + EC2
Here is in-depth scenario for deploying Rails app on Amazon EC2 using Capistrano, RVM, Bundler and Unicorn. Some not-so-standard tips and tricks are included as well.
Ruby wrapper for vk API.
VK-RUBY gives you full access to all API features. Has several types of method naming and methods calling, optional authorization, file uploading, logging, irb integration, parallel method calling and any faraday-supported http adapter of your choice. [more inside]
Cloud-based animated GIF generation
This blog post details a programmatic way to easily create image compositions, build image-based animations and generate animated GIFs. All image transformation, layering, effects and animation generation are done by Cloudinary in the cloud (no software installation required). Dynamic URLs and Ruby sample code included.
Validating nested associations in Rails
Not so long ago, I ran into problem of validating the number of nested attributes when using accepts_nested_attributes_for in Rails. I would like to share with you the solution I’d found in the form of this article. It shows the general principles of using nested attributes, as well as a couple of interesting tasks and their solutions.
Add a comfortable tag list using Rails and select2
This blog post shows you, how to add a comfortable tag list using select2, mongoid, simple_form and twitter-bootstrap-rails.
parse-ruby-client now supports Parse Cloud Code
parse-ruby-client now makes it really easy to call Parse Cloud Code functions from a Ruby environment. Example:
function = Parse::Cloud::Function.new("hello")
params = {"foo" => "bar"}
function.call(params)
500 Teams - The Biggest Rails Rumble Yet!
This year’s Rails Rumble will be the biggest yet!
Sortable Bootstrap Tables (in Rails)
Ben Woodward shows you how to make your tables drag & drop sortable: Sortable Bootstrap Tables (in Rails). Using Bootstrap, jQuery UI, Rails, and RankedModel, he walks you through a step by step setup.
gem-patch: a RubyGems plugin for patching gems
I released a gem-patch plugin for RubyGems. The plugin adds the patch command to RubyGems. The patch command helps to patch gems without manually opening and rebuilding them. It opens a given .gem file, extracts it, patches it with system patch command, clones its spec, updates the file list and builds the patched gem. It works on both RubyGems 1.8 and 2.0, branch for each version is also available. [more inside]
RESTful API for managing your website's images and other online assets
This blog post describes Cloudinary’s new asset administration API. Using this API you will be able to programatically browse through user uploaded images, find specific images, delete images, delete transformations and more. Sample code for Ruby on Rails included.
Git Runner: Ruby framework to run tasks after git push
Git Runner is a ruby framework to implement and run tasks after code has been pushed to a Git repository. It works by invoking git-runner through hooks/post-update in your remote Git repository. Have a look at this Demonstration video (ascii.io recorded) of Git Runner performing an application deploy (using capistrano) after code has been pushed to the remote repository. Documentation is fairly light at this time but all that really needs to be done is: install gems (git-runner and git-runner-deploy) and symlink hooks/post-update to git-runner.
Write Hadoop jobs in Ruby using Rubydoop
Rubydoop makes it possible to write Hadoop jobs in Ruby without using the streaming APIs. It configures the Hadoop runtime to run your Ruby code in an embedded JRuby runtime, and it provides a configuration DSL that’s way nicer to use than Hadoop’s ToolRunner.
Caching friendly authentication in rails
An interesting blog post about new approach to users authentication that grants a great deal of caching abilities and flexibility
How to restrict this number of keeping releases with capistrano
May be this is too captain but I just freed 1Tb of memory on production server by deleting old releases folder. Be sure to automate releases cleanup in your deploy.rb: recipe.
Bootstrappers -- instantly create Rails application with Bootstrap Theme & Helpers
I just wrote a gem : Bootstrappers , it can instantly create a Rails app with Bootstrap theme and other goodies.welcome to fork and add new features, thanks!
Terminus 0.4: Capybara for real browsers (and PhantomJS)
After a bout of furious (in both senses) hacking, I’ve released Terminus 0.4, a Capybara driver for controlling any browser you like.
Attachinary - a modern attachments solution for Ruby on Rails
This blog post describes Attachinary, a great new attachment management library for Ruby on Rails by Milovan Zogovic. Non-intrusive integration with your model, minimal code changes. Uses Cloudinary for uploading files to the cloud, transforming images and delivering files through a fast CDN. No need to install any image manipulation software. Built-in integration with jQuery-based direct uploading from the browser.
Keyword arguments in Ruby 2.0
Let’s take a look at the new feature in Ruby 2.0 - keyword arguments.
Install or update a gem behind a corporate firewall
The combination of Windows, Ruby and a paranoid organization can lead to unwanted hair pulling when you are trying to install or update gems. Here’s a simple fix to install or update a gem behind a corporate firewall or proxy.
CIBox got a Console Client
Wipe the borders between CI service and your workspace. Details
sport.db - A Free Open Sports Database & Schema (Football Fixtures & More)
Hello, I’ve extracted from the Sportbook (formerly Wettpool) the football fixtures for easy reuse. The open sports database also includes a little command line tool (Ruby gem), that is, sportdb and a sample web admin tool in Ruby on Rails. Events in the sport.db include the Champions League 2012/13, Euro 2012, World Cup Quali and others. Add yours. Cheers.