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.
MiniTest is not "Just Ruby", it is "Just Rails"
Recently, MiniTest have received decent amount of praising for being “better, less magic” Ruby testing solution than RSpec we all love. In the post, we’ll investigate whether MiniTest is really good Ruby (spoiler: no, it is not), and what is it: Ruby way. Also you can join reddit discussion of the matters.
macOS and macOS Config 1.0.0
With macOS Sierra released, these two projects (written in Bash – no other dependencies) provide a way to setup new machines using macOS Sierra and your development tools loaded and configured: [more inside]
Developing as a developer - a journey through learning
Learning new things can sometimes be difficult and frustrating no matter how motivated you are. I have gathered and wrote down some ideas, thoughts and advices from my journey as a Ruby on Rails learner (but I think that it has a lot of universal truths that can be applied in other topics). I hope that some of you will find useful tips, inspiration or motivation to share their stories: http://blog.ragnarson.com/2016/10/07/developing-as-a-developer.html
How to make your Rails Application Multilingual
Most of the world doesn’t speak English. That’s where internationalization and localization come in. Rails has a great i18n API. It provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in our application. Check out Rails gem approach, MySQL approach and a Multilingual Rails structure
Benchmarking Ruby methods
A short look on how to use Ruby’s benchmark module using the example of zero? vs == https://christoph.luppri.ch/articles/2016/10/09/is-x-or-y-faster-in-ruby/
VIM configuration for Ruby and Rails development walktrough
Vim config can be hard for newcomers. This is a walkthrough of my vimrc file that works with Ruby and Rails perfectly http://janjiss.com/walkthrough-of-my-vimrc-file-for-ruby-development/
React on Rails
How we implemented react server side rendering with NodeJS and Rails at Reverb
Deploying a rails app with Docker compose
In this article I will assume we have a ruby on rails application that is using a database to store some data, and capistrano for deployment and you want to deploy in on your server but instead of deploying directly on your server you want to dockerize the whole project to give it a separate environment and keep it away from your other applications. [more inside]
opsworks_ruby – manage Ruby deployments on AWS OpsWorks Chef 12 stack
Half a year go, AWS dropped their out-of-the-box support for Ruby applications. It is still remaining in the Chef 11 stack, but if you wish to use a new Chef 12, you are on your own. That’s where opsworks_ruby kicks in - it allows you to leverage all the goodies of AWS OpsWorks (like applications, layers, connected RDS etc.) just the way Chef 11 stack did, without any extra JSON configuration. This is a much simpler solution, than implementing your own recipes (like application_ruby for example) and keep track of all those JSONs all the time. And besides, it includes many framework, web and app servers out of the box. [more inside]
Bots, Bots, Bots - Botstack Quickstart - Build Your Own Messenger Chatbots w/ Ruby
Hello, David Mann (of Lazy Deejays fame - winner of Vienna’s 1st Bot Hackathon) has put together a (free, open source) botstack that lets you build Facebook messenger chatbots with Ruby (and Rails) in minutes. Ready-to-use Botstack modules include: Reply, Emoji, Web Search and more. Find out more ». Have you built any bots in Ruby? Let us now. Update: New Article by David Mann - Hello World! Botstack - A quick introduction to the botstack framework for rapid chatbot development.
Using Vue.js as an Alternative to Rails Nested Forms
Here is a quick post about using Vue.js to handle multiple models in the same form in a Rails app. This is an alternative to nested forms and accepts_nested_attributes_for: http://www.rymcmahon.com/articles/9
Minimal decoupled subsystems in your rails app
This post teaches you how you can use existing tools for processing background job as a starting infrastructure for messaging communication between decoupled subsystems in your Rails application [more inside]
How Bundler is broken and what you can do about it
Bundler has a major security vulnerability that affects all stable versions. The vulnerability allows an attacker to inject arbitrary code into your application via any secondary gem source declared in your gemfile, whether or not that source is scoped to specific gems. Learn more from Collective Idea’s blog post.
Do You have any other website like Rubyflow for Other Tech Sections?
Do You have any other website like http://www.rubyflow.com/ for Other Tech Sections like, Android, iPhone, Gadgets etc…? [more inside]
Auto-increment counter not persisted on disk with InnoDB
An interesting bug that made me wonder is time-travel real? Auto-increment counter is not persisted on disk with InnoDB
Getting Started with Minitest
Minitest is a beautifully made test suite for writing tests to verify your expectations from your Ruby code base. Here’s how to run tests in Minitest.
Whirly 😀
Whirly is a simple and colorful, yet customizable terminal spinner library for Ruby. It comes with 17 custom spinners and also includes those from the cli-spinners (npm) project.
Battle of Interpreters: MRI vs JRuby vs Rubinius
Do you know what are the main differences between the different Ruby interpreters? Learn here http://www.blackbytes.info/2016/10/mri-vs-jruby-vs-rubinius/
Brief introduction to internationalization in Rails by @Prograils
Why do we need I18n gem and how it works? How to internationalize and localize your Rails app? You can find some useful hints and tips in this blog post.
Ruby Versions Used in Commercial Projects, 2016 Edition
Every year at Semaphore we have fun crunching the numbers to see which versions of Ruby do people use at work. Here are the latest results.
Rails radio buttons & required boolean attributes
This is a post about using rails radio buttons for required boolean attributes.
Various CORS issues related (not only to) Ruby on Rails
http://www.eq8.eu/blogs/32-various-cors-issues-related-not-only-to-ruby-on-rails CORS may be bit tricky (not only) for Ruby on Rails application. In this article we will have a look on some problems and solutions I’ve dealt with them