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.
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).
Symbol to_proc Hack
Learn how to bind variables to a block variable at run-time by studying the Symbol to_proc Hack
Introducing URN gem
Ruby library to validate and normalize URNs according to RFC 2141. https://github.com/altmetric/urn
My New Favorite Enumerable Method
In this post I share some of my favorite Enumerable methods with examples. http://www.blackbytes.info/2016/03/enumerable-methods/
The Case Against Dynamic Typing
http://blog.debugme.eu/dynamic-typing/ An argument for dynamic typing is that by not enforcing the types of a function’s parameters, the function becomes more generalized, and thus more flexible and reusable. The author argues that this flexibility versus automatically-verifiable correctness of the system is not a trade-off we need to make. [more inside]
PostgreSQL and Rails, sitting in a tree: working with huge datasets
A post on working with large hierarchical structures in a Ruby on Rails + PostgreSQL application. The author does an overview of the most popular patterns, benchmarks them, and proves why the Closure Tree pattern, while not being very popular, sometimes outperforms the competition by far. [more inside]
Denshobato Gem Released! + Tutorial
Denshobato - is a Rails gem that helps models communicate with each other. It gives simple api for creating a complete conversation system. [more inside]
Building a microservice in Ruby
How can we build a microservice in Ruby? In this post I describe the way we built a simple mailer service with RabbitMQ and sneakers.
New aruba release - v0.14.0
I just released a new version of aruba 0.14.0. See our History.md. Alternatively have a look at the diff on Github.
Surrogate WebSockets Alongside Rails
Parker Selbert is showing how to leverage Elixir’s productive tooling to build out a WebSocket microservice. Read the article here.
Dependency Inversion Principle
Learn Dependency Inversion Principle by examples.
Java for Rubyists
Mark Phelps approaches Java from a Rubyist’s view. Why learn this less enjoyable-looking language and how do you get started?