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.
5 Awesome tools to keep your Rails code clean & organized
One of the main challenges in developing your own rails application is to keep your rails code clean. The rails experts at codebrahma have come up with this list of awesome tools that would help you keep your code clean and optimized for best results. [more inside]
Rubyconf Brazil 2016 new website is Open!
Don’t miss our annual Rubyconf in Brazil, it’s going to be on September 23rd and 24th in São Paulo City. Join us for our 9th consecutive conference, where we expect to have more than 1,000 attendees. We have around 80 confirmed speakers. You can buy tickets right now from our new website
How We Do Spikes
I wrote a blog post about our Agile process to manage risk, uncertainty and produce knowledge: https://medium.com/@sophiedeziel/how-we-do-spikes-4a43f0d19967 Should we replace Sprockets with Gulp? Is switching to a CDN worth it? Should we convert all our javascripts to coffeescripts? What should we do to avoid apocalypse?
5 Tips for Writing a Legible Regexp
Regular expressions can be tricky to write and downright impossible to read. They can also be incredibly useful. Striking a balance between power and legibility is achievable. Here are five of the best ways I know to do it. Read More
ExceptionNotification v4.2.0.rc1 has just been released
supporting Rails 5 and more. Please give it a try before we release the final version! https://rubygems.org/gems/exception_notification/versions/4.2.0.rc1
Playing with symmetric encryption using Ruby
A short introduction in symmetric encryption using Ruby and the OpenSSL::Cipher library Check it out
Errors can be indexed with nested attributes in Rails 5
Rails 5 has an option to index nested attributes errors. [more inside]
ActionCable under stress: fixing data corruption and socket leak issues in Rails 5
During performance testing of the Rails 5.0.0 release we discovered two bugs in Rails. One data corruption bug that occurs when two threads transmit on the same channel, and another bug causing socket leaks that could eventually make your server to grind to a halt. Read it here
Trying to match C-based Fast Blank with Crystal
In my quest to test Crystal as the ideal solution for native extensions for Ruby, I did a small proof of concept for Sam Saffron’s C-based Fast Blank gem. In this article I report the obstacles, how I overcome most of them, benchmarks and remarks on how to best use Crystal to accelerate Ruby itself. Check it out. Feedback is most welcome!
Finding and killing long running queries on PostgreSQL
Sometimes you feel like your Rails app is performing bellow your expectations. Maybe the reason behind it is a database problem.
AptWatcher — A Slack-friendly apticron replacement:
AptWatcher is a tiny Sinatra app that notifies your Slack channel about pending apt package updates.
Helpy 0.10.0 is out with custom themes support, live search and more
We are excited to announce Helpy 0.10.0 today, bringing with it a large number of improvements, bug and security fixes. If you are not familiar with Helpy, it is a great new Rails open source helpdesk project. [more inside]
Are "Functional" objects a thing?
I’ve seen the pattern a lot recently and think it is entirely unnecessary. Wrote a quick article on the topic on why I think it is an anti-pattern. Interested in other viewpoints.
Use as option to encode a request for a mime type in controller tests in Rails 5
We can provide a specific mime type to a controller tests request using as option in Rails 5 [more inside]
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]