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.
jQuery UI Autocomplete with Ruby on Rails
Step by step tutorial how to use the jQuery UI Autocomplete plugin on a Rails project. It includes using the jquery-ui-rails plugin, and styling the autocomplete with images and formatted titles. Check it out here.
GitCompound -- yet another dependency manager
GitCompound is a dependency manager that combines features of Bundler and Git submodules. This is particularly useful when dependencies also need to be developed continuously. GitCompound is decentralized, Git-based and flexible dependency manager.
Use any C library from Ruby via Fiddle – the Ruby standard library’s best kept secret
Fiddle is a little-known module that was added to Ruby’s standard library in 1.9.x. It allow you to interact directly with C libraries from Ruby. In this post we’ll start with some simple examples and finish by using termios to talk to an arduino over a serial port. - http://blog.honeybadger.io/use-any-c-library-from-ruby-via-fiddle-the-ruby-standard-librarys-best-kept-secret/
Optimizing Redis Usage for Caching
If you’re convinced that Redis is the right tool for caching then here are some essential usage optimizations:
Upgrading to Active Admin 1.0.0.pre1
A quick look at the things I had to do to get our app ready for the coming 1.0.
FlexMock is alive !
You’ve liked flexmock, but saw bugs creep in since Jim Weirich’s passing. I’ve started to fix the obvious (minitest v5 compatibility I’m looking at you) and want to make flexmock alive again
Create Multilingual Rails App with Different domains for each Lingual
Want a switching menu on your multilingual app? Get step by step tips on how to create a multilingual rails app with each lingual having it’s own domain.
Three Options for Top-Down Rails Testing
A lot of Rails developers have a hard time explaining the differences between various types of tests that exercise the application’s upper tiers - not just newbies, but even experienced programmers. With the changes coming to the framework, it’s time you knew controller tests from an integration test from an acceptance test.
Automatically add characters count down under form fields
If you need to add characters count down to your form fields I created a gem that adds them automatically when you set up maximum length validations in your model. [more inside]
A Rusting Rubyist IV
Rust Structs and Arrays in Ruby
RubyIssue(s)
A curated list of ruby related issues collected from GitHub. Bi-monthly email delivery. The ambition is to provide an entry point to the open source space for developers of all levels and from various backgrounds.
Sending Transactional Emails From Rails
Don’t take transactional emails for granted, because they’re fundamental for communicating and doing business online. Find out how to send transactional emails from Rails the right way.
Applying Transformation Priority Premise
How does the code evolve when we apply TPP? Read it here: Factorial Kata
Youtube filter for html-pipeline
Need to convert youtube url into a video iframe? I just create a gem called html-pipeline-youtube for adding youtube filter to html-pipeline. I think this might be what you need!
Phez - a reddit-like application built using Ruby on Rails
Phez is yet another reddit clone, this time written in Ruby on Rails. We’re looking for rails hackers who might be interested in contributing. Phez ships with a built-in API (built using doorkeeper + oauth2 gems). Phez on GitHub.
Notes from How to Debug Anything Presentation by James Golick
One of the best presentation: How to debug Anything
How to implement an usable cookie bar for your Rails application
If you sell something in your Rails application, being a product or a service, and you live in Europe, you have to comply with the cookie law. There are multiple JS solutions out there to ease this task, but I will teach you how to implement a cookie bar from scratch so you have full control and make it usable.
ToDo tutorial code
Just published the code of the tutorials for creating a simple ToDo application with Rails.
Factories that makes JSON
Sometimes, it gets quite annoying while you are testing your API, that accepts JSON. Often the solution in this is to keep JSON data in fixtures and then parse that and provide to endpoint. Maintaining then becomes quite a pain, especial if you have to support complex JSON data types and introduce changes with time. Here is solution: [more inside]
How to add useful context data to exceptions in Ruby
Sometimes the standard backtrace / error message combo isn’t enough. Sometimes you need extra data to locate the cause of an error. In this post we’ll discuss three easy ways to add more context to your exceptions. http://blog.honeybadger.io/how-to-add-context-data-to-exceptions-in-ruby/
Kontena: Docker Platform for Rubyists
Kontena is a Docker orchestration platform that is written using Ruby. Kontena features advanced cluster scheduling, network overlay, vpn, image registry etc. Check the documentation and source code from Github.
Wrapping existing JavaScript library with Opal
Ruby-fy your JS code using Opal
Application Border Control with form objects
Latest post in my series on using Domain Driven design with ruby.
Localizing Emails in Rails
There’s plenty of information on how to localize your application content in Rails, but details on how to send localized emails is harder to find. Here’s how to do it.
Discovery Tests vs Unit Tests
I don’t do Unit Tests, instead I do Discovery Tests (thanks to Justin Searls for the distinction). Coupled with the use of the Command pattern in my Rails apps, this makes my tests and code much simpler: [more inside]