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.
2015's Ruby Heroes on The Changelog
We had a fun roundtable discussion with all 6 of this year’s Ruby Hero Award winners. Have a listen!
Disable unsafe rake tasks in Rails production environment
I wrote a simple rake task that raises an exception when you try to run dangerous rake tasks like rake db:drop in production. Read the post here: http://nithinbekal.com/posts/safe-rake-tasks/
Increasing test coverage of a Rails controller with mutant [3 minutes video]
There are not many examples showing how to use mutant within a Rails app. I decided to record this short video (3 minutes) to show how it can help in everyday work. [more inside]
Ruby Gem for Aptly (aptly.info) API. Apt repo manager
Hi All, I put together this Gem to interact with the Aptly API ( http://aptly.info ). This is my first Ruby Gem, so any advice or feedback is welcome and appreciated. [more inside]
Lightweight Rails app monitoring via StatsD
Announcing the scout_statsd_rack gem: drop-in Rails monitoring via StatsD and Rack Middleware. See it in action.
Your Clever Code is a Jewel-Encrusted Lobster
Over the weekend, I wrote a quick post about the similarities between “clever” code and a very special lobster.
Let's keep frontend outside of Ruby
I wrote my thoughts about why I believe it’s always better to keep backend and frontend separate.
Representable 2.2 Is More Than 50% Faster Than The World!
Representable 2.2 is significantly faster when parsing and rendering objects to and from documents in REST APIs. Get a quick overview about some benchmarks and the major changes in my blog post.
Verifying PubSub Services (like Redis) from Rails
Verifying PubSub services can be tricky, since subscribers loop over to listen messages. This is one way to test these services, using threads. [more inside]
Class Methods and Singleton Methods
Singleton Methods Demystified. What are they and where do they live?
Using domain events as success/failure messages
When you publish an event on success make sure you publish on failure too [more inside]
Rake task to drop and reseed database in Rails
If you need to drop your databases and run migrations from scratch, here’s a simple rake task that will do this: rake db:reseed.
Handling RabbitMQ consumer failures with maxretry handler
Example of handling RabbitMQ consumer failures using great gem called ‘sneakers’ and ‘maxretry’ handler for requeue and retry messages after failure. http://warolv.net/blog/2015/05/16/handling-rabbitmq-consumer-failures-with-maxretry-handler/
Reflections on Coaching at Rails Girls
Last week I took part in a Rails Girls seminar in Tel Aviv. It was a great experience sharing my passion for coding with people who really wanted to learn. Read some of my thoughts on the event.
Switching From Unicorn to Puma on Heroku is Easy!
It’s as easy as 3 changes and you’re good to go! http://6ftdan.com/allyourdev/2015/05/16/switching-from-unicorn-to-puma-on-heroku-is-easy/
Start using ES6 with Rails today
I really liked new ECMAScript syntax. I wanted to try it out in my Rails project, but it wasn’t that easy. See my guide on 2 ways to get ES6 in Rails: http://blog.arkency.com/2015/05/start-using-es6-with-rails-today/
Ruby Object Model : Class Methods
tty-platform released
tty-platform offers query methods for detecting different operating systems. This is a new component for tty library for bootstrapping development of terminal apps.
Introducing read models in your legacy application
Simple walktrough how to introduce read models in your legacy application. Check this out: http://blog.arkency.com/2015/05/introducing-read-models-in-your-legacy-application/
Connecting Some Models To A Different Database In Rails
We extracted a few models into their own application and database for shared use between other applications. Heres how to setup such a thing: http://solidfoundationwebdev.com/posts/connecting-models-to-different-databases-in-rails
Functional Programming with Ruby
Wanna try functional programming, but don’t want to learn a new language? I made it simple by introducing basic concepts of FB with Ruby examples! Have a look: http://bit.ly/ruby-functional-programming
New Version Ruby On Windows Guides Released
New version of Ruby On Windows Guides is released. There are number of changes compared to previous version. ConEmu is used for better and easier work in Command Prompt, Uru is now main Ruby version manager. Default Ruby is now 2.2.1, Rails is updated to 4.2.1 and chapters about SQlite, MS SQL, MySQL and PostgreSQL all use latest versions.
Speed Up Your Rails Views By Deferring Changes
Having your views doing calculations to determine your output could be very costly in page load time. Speed up your site by first deferring some dynamic content and thereby allowing performance increases with more caching. http://6ftdan.com/allyourdev/2015/05/15/speed-up-your-rails-views-by-deferring-changes/
Howitzer v1.1.0 released
Hello. I am happy to announce Howitzer v1.1.0. For details, please see Changelog