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.
Schemaless Models With Hash Fields or JSONB
Hash fields (such as the new JSONB column) allow you to save arbitrary data structures in one database field. Why this will speed up your development process and how twins help with a rock-solid API, coercion, validation and more is discussed in this article.
Parsing Binary Data Formats
My new post on the Codeship blog shows you how to write a PNG image decoder! https://blog.codeship.com/parsing-binary-data-formats/
5 things you (probably) didn't know about Refinery CMS
5 misknown features of Refinery CMS you could discover in this post. : https://medium.com/@bricesanchez/5-things-you-probably-didnt-know-about-refinery-cms-2a79b50484d0#.3c3jdbe5j
Upgrading to Roadie 3 for your email styling
We’ve recently had to upgrade from Roadie 2 to Roadie 3 in one of our app and on this post you can find our simple “How to”
Standardize Getting Started: The Need for ./bin/start
Just like you have bin/setup for all your projects, make sure you have a bin/start to get your application up and running in two steps: http://www.ombulabs.com/blog/maintenance/conventions/standard-getting-started.html
ActionController::Renderer
ActionController::Renderer allows you to render arbitrary templates without requirement of being in controller actions. https://www.driftingruby.com/episodes/actioncontroller-renderer
Application API with Ruby on Rails
API’s are built as a component of the application. Basically we need to have a web API if we want to store and process our data in server . | Read More |
Building maintainable Rails apps
When a Rails app is young you move at the speed of light. As time moves on however, developing new features typically slow down. This video from RubyC introduces some concepts to help keep your app maintainable for the long term.
Tips for Upgrading from Rails 3.2 to 4.0
Know what dependencies you’ll need to update when upgrading from Rails 3.2 to 4.0, and how you can end up with a cleaner app after the upgrade is complete.
Model callbacks in Phoenix, Ecto and Rails
Can you use model callbacks (after_create et al) in Phoenix just like in Rails? And more importantly, should you? Read more at Phoenix on Rails blog.
Controller actions responds with 204 No Content by default in Rails 5
Controller actions will now render 204 No Content when we don’t tell Rails how to generate response. [more inside]
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.