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.
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. Read more
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.
Emacs tidbits for Ruby developers
I compiled a short list of stuff I use to be a more productive Ruby developer. Have a look and let me know what tricks you use: Emacs tidbits for Ruby developers
Table Cloth - Easy to use tables in Rails views
I just launched Table Cloth. It’s an easy way of generating tables in Rails views. It gives the ability to render actions as well. Read more
Codecademy & Ruby
We just launched our first Ruby track at Codecademy. It’s designed for beginners, but we’re looking to include more courses & content in the future!
Table Cloth - Easy to use tables in Rails views
I just launched Table Cloth. It’s an easy way of generating tables in Rails views. It gives the ability to render actions as well.
Jail Harvesting the CDNJS libs
Jail 0.1.1, a Rails Engine built on Githubs API to install/remove your Javascripts in just one click, now harvesting on the CDNJS libraries (158 js libs) to boost the number of inmates. Hope you like it, suggestions more than welcome.