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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Implementing file uploading can be one of the most fun parts of writing a Rails application. But it can also be a bit confusing if you’ve never done it before. This blog post looks at the
paperclip gem, and how to both implement it and understand what it’s doing behind the scenes.
Single table inheritance has a number of tricks and gotchas, it also requires developers to unnecessarily persist code details (such as class name) in the database. We wrote a simple model concern to help alleviate some of these issues. Check our our post!
Hello, I’ve started a new F.A.Q for all things Jekyll and friends. Still early. Questions so far include: Where can I find the latest (and greatest) Jekyll news and goodies? Where can I find themes? Can I use Bootstrap with Jekyll? Where can I find help? Where can I find Jekyll friends? What Jekyll plugins can I use on GitHub Pages? and some more Question? Comments? Welcome. Cheers.
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/
If you’re convinced that Redis is the right tool for caching then here are some essential usage optimizations: http://sorentwo.com/2015/07/27/optimizing-redis-usage-for-caching.html
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.
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.
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]
Rust Structs and Arrays in Ruby https://medium.com/@mfpiccolo/a-rusting-rubyist-iv-b1d32802944b
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.
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.
One of the best presentation: How to debug Anything
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. http://davidmles.com/blog/usable-cookie-bar-rails/