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.
Platform Agnostic Clipboard Access
The clipboard gem just reached version 1.1.0, which added official Cygwin support!
How to squash work-in-progress migrations
Would it be better to have only one migration in place of a few WIP ones you created when working on a feature, that have silly mistakes and correct or cancel out each other? It would, and it is possible.
Persistent storage for your Rails apps with Dokku and Docker
Read how Michiel mounts persistent storage from our host system into our Ruby on Rails Docker containers.
7 Reasons Why Ruby on Rails is Massively Popular Among Developers?
Check out some of the reasons behind the massive popularity of Ruby on Rails among developers to help you make an informed decision whether you should go for it!
Dangers of Model in Rails 5 Session
The thirteenth episode of Railscast is now updated to Rails 5 as a blog post. Learn all about Dangers of Model in Rails 5 Session
Create chat between two models in Rails.
We continue our series of articles about creating messaging system between two models (Reseller and Customer). In Part 3 we’ll install an additional plugin to our conversation, which adds a chat panel. [more inside]
Automate Redis Update on VPS
Learn how to upgrade Redis to 3.0.7 using Moonshine Redis Plugin
tty-spinner v0.2 is out
The new tty-spinner has been totally rewritten to be more flexible and intuitive. The most notable changes to API are introduction of start call for automatic spinning. Stop method now has two specific calls called success and error for marking with check or cross the task completion. You can now listen to spinner events fired for :done, :success and :error states. Also the formatters have grown in number with ability to specify time intervals. see formats section
12 Things to consider when deploying HTTP Services
Rather than putting all domain logic into a single application monolith, modern software architectures tend to split functionality into multiple applications and services. [more inside]
Filtering Sensitive Parameters from Log Files in Rails 5
The ninth episode of Railscast is now updated to Rails 5 as a blog post. Learn all about Filtering Sensitive Parameters from Log Files in Rails 5
Unicode::Confusable
Unicode::Confusable.confusable? "ℜ𝘂ᖯʏ", "Ruby" # => true
There are many Unicode characters that look very similar or even the same, but are represented by different codepoints. For example, there is no visual difference between some latin and cyrillic letters: “C” vs “С”. The unicode-confusable gem can be used to compare if two strings look very similar.
New Markdown News Channel @manuscriptsnews - Write Hypertext Markup in Plain Text
Hello, I’ve started a news channel, that is, @manuscriptsnews covering news, tools ‘n’ tips & tricks about writing books, articles, posts etc. in plain text with markdown (and kramdown ;-)). News bytes include: [more inside]
Rails controllers hierarchy and views path
I show how we can use controllers hierarchy and avoid specifying each view’s path explicitly. http://thepry.github.io/rails-controllers-hierarchy-and-views
FactoryGirl Beyond the Database by Miguel Palhas
FactoryGirl can create plain old Ruby objects too. https://subvisual.co/blog/posts/73-factorygirl-beyond-the-database
Integrate bootstrap 4 with Rails 5
Checkout sample Rails 5 project that Integrates bootstrap 4 with Rails 5
Rails 4.2.6 and 4.1.15 have been released!
The Ruby on Rails team has announced new versions of Rails. http://weblog.rubyonrails.org/2016/3/11/Rails-4-2-6-and-4-1-15-have-been-released/
Suppress save events in Rails 5
You can now suppress save events in Rails 5. [more inside]
SpreadsheetArchitect v1.2.0 Released
SpreadsheetArchitect lets you turn any activerecord relation or ruby object collection into a XLSX, ODS, or CSV spreadsheet. https://github.com/westonganger/spreadsheet_architect
Rails 5 and Docker: Lessons Learnt
With the modern DevOps development pipelines and bleeding edge container technologies build around Docker, it is relatively easy to scale and run Rails applications in production on any cloud; private, public or even hybrid. On paper. The fact is, Rails is not the easiest framework to run as containers. http://blog.kontena.io/rails-5-and-docker/
Top 5 Tools to Expand Utility of Ruby on Rails
Here are 5 best tools to expand the utility of Ruby on Rails . These tools will effectively make the platform better and user friendly.
Introducing has_reindexable_associations gem for Elasticsearch
This gem enables automatic Elasticsearch reindexing of ActiveRecord associations. One can keep specified associations in sync with ease using async reindexing. https://github.com/efigence/has_reindexable_associations
fec - Terminal utils to change multiple file's extension
https://github.com/CQBinh/fec Rename all files extension inside folder (including recursive folder).