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.
Background jobs in Ruby
Queue management systems are used to process background jobs, so these jobs don’t interfere with the user experience. There are systems that use a database, and others that use Redis instead. Even Ruby on Rails has standardized it with ActiveJob so the application uses the same syntax for any system. http://davidmles.com/blog/background-jobs-ruby/
Global Hotkeys Management for toggling windows in Linux/X11
I’ve just released global_hotkeys_manager a new gem that integrates some command line tools like xbindkeys and xdotool to enable you to assign global hotkeys (shortcuts) to existing windows that will toggle their visibility for quick access. It supports Linux/X11. [more inside]
Don't you Struct.new(...).new(...)
Have you ever seen Struct.new(...).new(...)
in code or have you written it yourself? Have a look at this post ideas for reasons why not to do it, such as the immense performance hit.
From Rails to Node.js – Initial Observations
My initial observations coming to node.js from a rails background. [more inside]
Notifyor now with Linux support
Link: https://github.com/ndea/notifyor The new version of notifyor now supports growl messages on linux. Notifyor is a gem which generates growl messages on your desktop when something happens in your rails app.
Things to Consider when Metaprogramming in Ruby
Metaprogramming in Ruby is a polarizing topic. The most common purpose of Ruby metaprogramming is for code to alter itself at runtime. Metaprogramming can be used to achieve terse and more flexible code. However, it is not without its cost. As with most things, nothing of value is free, even metaprogramming.
Slide Show Quick Starter Kit - Write Your Talks in Text w/ Markdown (n Ruby Helpers)
Hello, I’ve put together a quick starter kit for writing your talks in plain text with markdown formatting conventions. What’s included? 1) A first sample talk (see sample1.text
) 2) A second sample talk (see sample2.text
) incl. some (ruby) macros/helpers e.g. left
, right
, step
, etc. ++ Use a (static) slide show builder / generator to build a web page that is an all-in-one-page handout and a live slide show all at once e.g. $ slideshow build sample1.text
and than open sample1.html
in your browser of choice. Cheers.
From Rails to Hanami Part 2: Sequel Migrations, Model Validations, Specs and Fixtures
The ‘real world problems’ driven guide to use Hanami on production: http://rpanachi.com/2016/04/11/from-rails-to-hanami-part2-sequel-migrations-model-validations-specs-fixtures
Metaprogramming in The Wild
How are some of the most popular open-source projects making use of metaprogramming? http://www.blackbytes.info/2016/04/metaprogramming-in-the-wild/
Ruby Methods: differences between load, require, include and extend in Ruby.
One day, as your code grows, you may find it hard to organize your application. At this point, the best idea is to split your code into several files. [more inside]
Rails Emoji Picker 0.1.5 was released!
A lot of bugs were fixed since the first release. Now rails emoji picker is ready to use Heroku Example - Example on Heroku Github Repository - Rails Emoji Picker [more inside]
Simple Multitenancy with Rails and Pundit
Minimalist way to get a multitenant Rails app up and running. http://andrewmarkle.com/2016/04/06/multitenancy-with-pundit.html
One Rails App With Many Databases
Scale an existing Ruby on Rails application by using multiple databases and engines: http://www.blrice.net/blog/2016/04/09/one-rails-app-with-many-databases/
Client-side Action Cable with Rails 5
Here is a gem that will allow the use of easy Action Cable protocol in native ruby apps: https://github.com/NullVoxPopuli/action_cable_client
Application Performance Monitoring with New Relic
Ensuring the performance of an application is as important as the application itself. And that can be done with New Relic which is a performance management system. It provides in-depth information about your Ruby on Rails application as it runs in production.
Free GitLab Pages w/ Static (Web)Site Builders e.g. Jekyll, Middleman, Nanoc, etc.
Hello, GitLab now offers free GitLab Pages that lets you build your (web)site with any static (web)site builder in ruby e.g. Jekyll, Middleman, Nanoc, and so on. See pages.gitlab.io
or read “Hosting on GitLab.com with GitLab Pages” by Marcia Ramos to get started. News bytes via @statictimes
- follow along for more news about all things static (is the new dynamic).
New Community Link-Logs Launched, Coders-Log.com
I really love RubyFlow and JSLive but they are only limited to Ruby and Javascript. I needed a place to put my Unix/Linux & Cordova/Ionic articles. I have released Coders-Log.com which currently provides the topics Unix and Cordova with more topics to be added on request. https://coders-log.com
Gem Denshobato - the easiest way to make messaging between models.
Denshobato is a Rails gem that helps models communicate with each other. It gives simple api for creating a complete conversation system, check it out - Github Repo: Denshobato
How To Monkey Patch A Class In Ruby
This article describes how to properly monkey patch classes in Ruby. http://solidfoundationwebdev.com/blog/posts/how-to-monkey-patch-a-class-in-ruby
We Work With Ruby
We Work With Ruby is live.. Post Ruby, Rails jobs or create Ruby Developer profile and let companies find you..and it’s Free [more inside]