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 5 project generator
I moved Onotole to Rails 5 version, so you can test out up to 100 gems from the box (gems of your choice) with initial config, so, it is the easiest way to try out new environment. [more inside]
Cover all test cases with #permutation
When dealing with system which cooperate with many other subsystems in an asynchronous way, you are presented with a challenge. Due to the nature of such systems, messages may not arrive always in the same order. How do you test that your code will react in the same way in all cases? [more inside]
Avoid Mutation – Functional Style In Ruby
This article is the first in a series about how to incorporate functional programming concepts into Ruby code, in a pragmatic way – something I call “functional style.” [more inside]
Top Talks from RailsConf 2016 (w/ Video Links)
This year’s videos are now live, so here are the top talks from RailsConf 2016 as picked by Grok Interactive.
tty-which v0.2.0
tty-which that mimics Unix which command receives bug fixes and new exist? method call. Enjoy!
OO authorization focused on APIs
know_it_all is a new gem for authorization, heavily inspired on Pundit, that makes it easier to display errors through the API. It is also more flexible in the arguments it receives, as it understands that certain actions’ authorizations depend on several factors.
Rails asset pipeline vs Phoenix and Brunch
Both Rails and Phoenix can manage and deploy assets for you. But the approaches and solutions differ greatly. Read more at Phoenix on Rails blog.
Ruby on Rails 5.0.0 Released
http://weblog.rubyonrails.org/2016/6/30/Rails-5-0-final/
From Monolith to Micro-services, Part 3: The transition
3rd article of a series of 4 on migrating to microservices: [more inside]
Time range operations with Rails
Returning basic time ranges using ActiveSupport methods. Read more at Little Programming Joys.
Introducing Screamshot
Did you know you can use Capybara as the basis for a screenshot service? Find out more in Introducing Screamshot.
Active Params
Stop manually defining strong_parameters in each and every controller. [more inside]
Ruby Decorators
A quick overview on how ruby decorators work Read more: https://codebrahma.com/ruby-decorators/
Building Your Own Linux Tools with Ruby: A Practical Guide
What is the secret behind everyday Linux tools like netstat or top? Discover it here: http://www.blackbytes.info/2016/06/linux-tools-with-ruby/
The best of Rails in Phoenix (part 1)
There are many parts of Phoenix that will make you, the long-time Rails developer, smile and feel right at home. Read more at Phoenix on Rails blog.
How to refactor ActionView view using Cells
A guide from Cells author Nick Sutterer: http://trailblazer.to/gems/cells/getting-started.html
Working with Logstash
The post describe how to start working with Logstash and how does it configuration work. [more inside]
Ruby Rescue vs. Try vs. Ternary
All of us have faced this situation when, the current_resource object provided by devise turns out to be nil. All method invocations on current_resource on current_resource will throw an undefined method for nil:NilClass exception. [more inside]