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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
The dynamic connectivity problem uses a graph (a data structure) that maintains information about the relationship between its components. With this information the data structure can answer whether there is a connection between two objects or not. http://davidmles.com/blog/dynamic-connectivity-ruby/
For some reason not many RoR developers know that they can extend ActiveRecord associations. This feature can be a great way to cleanup any relational code that is dependent on a parent resource. Here are few examples on how and when to use it: Extending ActiveRecord association to cleanup your associations code
A beginner’s guide to keeping your data safe from those nasty bad guys: http://theartandscienceofruby.com/2015/06/29/how-do-i-encrypt-data-in-my-database/
Where I start from scratch and (re)build the Rails Model callbacks. And some learnings along the way. http://murtuzakz.com/appreciation-rails-part-1-model-callbacks/
Query Objects are a fairly well known concept in Rails. In this post, I’m explaining how you can use a Query Object as an ActiveRecord scope.
In this article I explore the weighted quick find union algorithm in Ruby. This is an algorithm useful to finding out whether node A is connected to node B. Think of a maze: Is there a solution from the start to the finish? Or a network: Can computer A speak to computer B.
I prepared a simple repository showing a process of refactoring scaffolded Rails views to React components with built-in server-side rendering. It shows how simple you can switch from static Rails views to a dynamic-ready technology.
Episode 6 goes over how you can save time and keep code clean by using Volt components in your applications.
One of the most important things for applications is stability. There are various hosting platforms that give you virtual servers, where you can run multiple services. There is no limit to the number of processes so it is up to you how much of their resources will be used. However, exceeding all available RAM memory can result in poor stability or even a server crash. This article gives you some basic knowledge about the out-of-memory system state. [more inside]
Using Rails? using acceptance testing? using PhantomJS with poltergeist? are your tests running too slow? are you running out of memory? well: https://medium.com/@ccverak/is-phantomjs-eating-all-the-ram-on-tests-f0993f8d5b82
I wrote a blog post about using terminal colours to render images in the terminal using Ruby. [more inside]
New post on the Ragnarson Blog - Rails Girls Łódź 2015 @_idengager http://blog.ragnarson.com/2015/06/29/rails-girls-lodz-2015.html