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.
Quantum Computing with Ruby
Using a special interlacing hash, we can do some experiments with quantum superposition and of course the famous cat from Mr. Schrödinger. [more inside]
The Lazy Developer's Guide to Life Without the Mouse, Cursor and Useless Keys
Dare I broach the topic of the Vim vs Emacs holy war? I’ve tried both editors, but ultimately Vim stole my heart and, in doing so, turned my life into hell. It’s such a pleasure to use; nothing else compares to it. Suddenly, I hate typing with any application that doesn’t use the HJKL keys to move the cursor, and I find myself becoming frustrated whenever I need to use the mouse! So what changes can I implement to ease my pain and make my life easier, you ask? https://netguru.co/blog/guide-lazy-developers
Setting a default image when using Cloudinary and CarrierWave in Rails
Cloudinary lets you specify a default_image parameter when using the cl_image_tag, along with all of your transformations, to provide a fallback image if one has not been uploaded. If, however, you are using CarrierWave, you’ll likely want to define your transformations and the fallback image just once in your Uploader class, but this is not well documented - here’s how to do it. [more inside]
Brakeman Pro 1.0 Now Available
Brakeman Pro, the commercial version of the open source Brakeman static analysis security tool for Ruby on Rails, has just been released. It provides a streamlined desktop GUI interface to manage scans and investigate warnings as well as a drop-in command-line replacement for Brakeman.
Representable 2.4: How Functional Programming Speeds Up Rendering And Parsing.
Representable is a gem to render and parse documents, e.g. for REST APIs. In the 2.4 release blog post you learn how we used functional programming pipelines to simplify the code and improve performance by factor 3.
rails_db - major release, please check notes
https://github.com/igorkasyanchuk/rails_db - please check an updated version of my gem (version 0.8) [more inside]
Send emails with Mandrill and Rails
Mandrill by MailChimp is an online service that sends transactional emails. We have used it to send emails in our Ruby on Rails apps for some time now, and we’ll show how to do that here.
Hacking Your Gems for Debugging
Ever wish you could drop a few puts
or binding.pry
calls in to a gem so you could understand what’s going on inside? In this post I share some useful tooling for altering your local gems for the purposes of debugging. Read More: Hacking Your Gems for Debugging
Spying on running Ruby processes
Did you know that it’s possible to log all method calls as they occur in a running process in real time? How about injecting code to be executed inside of a running process? You can - via the magic of the rbtrace gem. http://blog.honeybadger.io/spying-on-running-ruby-processes/
Ruby Static Site News - Jekyll v3.0.1 Released, Meet Hyde, Nanoc v4.0 'n' More
Hello, Via @Vienna.html some static site news bytes (follow along for more ;-). New Releases: [more inside]
Is your app deRailing?
An introductory article on Trailblazer, its benefits, how it can help to better organize bigger apps, with some code samples and everything. Read more
Lexical scoping and Ruby class variables
In this post we’ll discuss some non-obvious behavior of class variables and show how it’s all the fault of lexical scoping. http://blog.honeybadger.io/lexical-scoping-and-ruby-class-variables/
Free SSL with CloudFlare and Heroku
It’s easy to https
your Heroku site without actually buying a SSL certificate. Just use Cloudflare’s Universal SSL and you are done! Follow the steps in this blog post.
Effective TDD With Ruby: Tmux Setup
Last article of this series where you’ll learn how to build an UNIX IDE for highly productive coding sessions. Read more
Peeking Under The Hood of ActionController Parameters, Part 1
Strong parameters are a daily staple in any Rubyist or Rails developer’s workflow. But how do they actually work? And why do we use methods like require
and permit
? What do they do, exactly? This blog post tries to answer these questions by taking a peek under the hood.
Five Active Record Features You Should Be Using
Active Record is responsible for communicating with the persistence layer by default in Ruby on Rails applications. Using Active Record effectively and efficiently can greatly improve an application’s code.
Adding tags to ActiveRecord models
Where we see how to add tags to the Article models of a blog application written in Ruby on Rails. The user should be able to enter a list of words separated by comma; the app should then create tags from the words entered if they don’t exist, and link them to the article.
Scrivito: A professional Cloud CMS built for Ruby on Rails
Most Rails developers are struggling to find a Rails-based CMS with the feature set of PHP options like WordPress or Drupal. That’s why we’ve built Scrivito. Our SDK, delivered as a Gem, integrates with any Rails app within 10 minutes. So you can easily enhance your existing Rails app with WYSIWYG content editing capabilities and much more. Try a free 30-day free trial on https://scrivito.com.
The Grape Swagger Stack
How to build clean and lightweight microservices complete of UI and documentation in Ruby with Grape and Swagger: http://www.roialty.com/ruby-the-grape-swagger-stack/
Pakyow v0.10 Release
We just pushed out a bit update to Pakyow, a realtime web framework for Ruby. This release introduces WebSockets, channels, reactive views, and a some other goodies. Read the announcement
Pronto v0.5.0
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And v0.5.0 is the best version of Pronto yet. It includes bug fixes and features requested and created by the community. If you haven’t had a chance to check Pronto out in the past, there’s no better time than now!
Quick, no-hack emoji support with MySQL & Rails
Don’t want to suffer the huge migration from utf8
to utf8mb4
to get emoji support? Rails has a built in way to help with that: https://dev.firmafon.dk/blog/quick-no-hack-emoji-support-with-mysql-rails/
What To Do When You're Stuck In Ruby
There are lots of tools to help you debug your Ruby code, but it’s not always obvious which ones are right for the job. Especially when you have to dig into somebody else’s code. So before you head over to Stack Overflow out of desperation, let’s see if we can figure out this problem ourselves.
How to stay up to date on security alerts
One of the common reason for compromise when security breaches occur is software patches not being applied. For Ruby & Rails developers it’s important to stay up to date on security alerts, and I’ve put together a short post on how to do that.
Introducing DRG CMS
New opensource CMS and rapid web application development tool DRG CMS uses Ruby on Rails and MongoDB in unique way to provide super fast web development. Read introduction and try to make your own web site in 15 minutes