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.
Upgrading to Ruby on Rails 5.0 from Rails 4.2 – application use case
Ruby on Rails 5.0 is just around the corner. Here’s a quite extensive tutorial based on one of my applications on how to migrate from Ruby on Rails 4.2 to Ruby on Rails 5.0. Upgrading to Ruby on Rails 5.0 from Rails 4.2 – application use case
How Ruby 2.2 can cause an out-of-memory server crash
Bad news—Ruby (MRI) can cause an out-of-memory server crash. The issue first appeared with version 2.2.0-preview and has remained ever since. [more inside]
A Holiday Thanks To Rails
In 2014, when I wrote my first Rails application, it was an awakening for me. Rails became a gateway into understanding not just web applications but software architecture in general. Before that, I wrote hermit scripts that died alone in shells and verbose yet static HTML and Javascript unaware of where it lived. Then, one command changed the game for me — [more inside]
Build MiniTest From Scratch to Learn Ruby Metaprogramming
One of the best ways to learn something is try to build it yourself, and compare it with how other programmers have done it. We went through this process to Build MiniTest From Scratch to Learn Metaprogramming
Reform 2.1 With Dry-Validation and Grouping
Reform 2.1 brings dry-validation support, validation grouping and chaining, and some cool API extensions for populators. Read the release blog post here.
Simple encryption of ActiveRecord fields
With OpenSSL::Cipher and ActiveRecord support for column serialization, it’s quite easy to encrypt model fields on the database layer
ActionCable Devise Authentication
Tutorial to make ActionCable and Devise together: ActionCable Devise Authentication
Finding bugs with HTTP verb and response code mismatches
Recently I found that an odd combination of HTTP verb and response codes helped track down a bug. Have you run into any more combinations like this?
20 years of Ruby with RubyMine blog
As hard to believe as it is, 20 years ago the first public version of Ruby saw the light of day. Ruby 0.95 was announced December 21st, 1995. To look back on the journey of Ruby, we’ve come up with a series of humorous cartoons. We invite you to celebrate the anniversary with us.
Composing Microscopic Rails Views With Cells
So much of the time, our Rails views are the first files to devolve into a complete and utter mess, with monstrous conditional logic that is easy to lose track and control of. The cells gem gives us an easy solution to this problem by allowing us to create a Ruby object that has a single responsibility: rendering a template. This blog post explores the cells view models, and the different ways we can implement them in our Rails applications.
When to choose Elixir over Ruby for 2016 projects?
A highly opinionated post this time on picking your stack for 2016 projects: When to choose Elixir over Ruby for 2016 projects?
Multiline strings in Ruby 2.3 - The Squiggly Heredoc
Ruby finally has an acceptable way of writing multiline strings - no more messy gsubing, bad indentation or monkeypatches - meet the Squiggly Heredoc!
Introduction to Rails 5 Attributes
Shortly after the tenth anniversary of Ruby on Rails 1.0, Rails 5.0 Beta has been announced. While the main character of this release was without a doubt ActionCable, other really great features have made their debut.
Wye Tech News #3
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
How does ARGV get set in Ruby?
You probably know that Ruby sticks any command-line arguments into a global array called ARGV. But why the heck is it called ARGV? It’s an interesting history lesson that highlights Ruby’s origins in C. http://blog.honeybadger.io/what-does-argv-mean-in-ruby/
Protozaur. CSS framework for RoR
I happy to introduce small but very usefull tool for building prototypes. Protozaur is a set of CSS classes which can be used to increase productivity when you working with RoR frontend. Learn more about Protozaur.CSS
Installing Ruby on OS X, Ubuntu and Windows
In this course I will teach you how to install Ruby on OS X, Ubuntu and Windows, using best practices to customize your development environment and giving a quick overview of the most popular code editors. http://davidmles.com/blog/installing-ruby/
Ruby can be Faster with a Bit of Rust
Wouldn’t it be cool if you could write C extensions without having to manage memory? What if it was even faster than C? The Rust language might be up your alley. You can read more at SitePoint.
Give the gift of 'Learn Ruby on Rails' for free
Know someone who wants to learn Ruby on Rails? Holidays are a great time to begin. This book is called, “The best Rails book for beginners,” and it is FREE on Amazon from now until December 25. Give it as a gift. Or get it for your own reference library.
Infoboxer 0.2: Effective Wikipedia data extraction
New version of infoboxer gem has been released. Infoboxer targets information extraction from MediaWiki-based wikis. New version includes ability to fetch categories and new interactive console.
The Best Picks from Ruby Day Conf 2015
Conference sum up by Netguru developers, along with links, presentations and incoming trends. [more inside]
New API load stressing/testing framework
I build a load stressing and testing/measuring framework on Ruby (mostly) for APIs. Take a look here! It uses underneath http gem which means it supports anything this gem supports. Also, you can customize the urls using pros/lambdas and have different strategies when sending the requests making it super easy to create any testing scenario.
Know who your Rails developer is NOT
It’s easy to forget, when hiring an expert, that they only specialize in one thing. Here are a few things your RoR expert is NOT, and what you shouldn’t expect their help with.
Unlocking the ‘Devise’ Gem
Devise is a powerful & flexible authentication solution for Rails. It is completely based on MVC structure and allows to have multiple models signed in at the same time. Read full article at RailsCarma Blog.
Email address validation and encodings
RFCs are difficult to read and understand, and can be ambiguous at times. Theory is one thing, and implementation is another thing. In this blog post my focus are some interesting details about email addresses.