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.
Physical separation in Rails apps
Physical separation in Rails apps what are your options? Directories, gems, engines? Anything else?
Build Your Own Blockchain in 20 Lines of Ruby - blockchain.rb @ Awesome Blockchains
Hello, Inspired by Let’s Build the Tiniest Blockchain
In Less Than 50 Lines of Python I’ve put together a Ruby version. Blockchains, blockchains, blockchains! See the blockchain.rb sample in the Awesome Blockchains repo. Use $ ruby ./blockscript.rb to run. Happy blockchaining. Cheers.
Roda 3.0.0 Released
Roda 3.0.0 has been released. This release of the web toolkit offers better performance, raises errors instead of silently ignoring unsupported matchers or block results, and has more secure defaults.
ElasticSearch vs Algolia
Comparison between ElasticSearch and Algolia. Extra: Some cool gems to integrate your rails app with Rails.
Ruby on Rails Books for experienced developers
This time we’ll jump to the next level by focusing on advanced RoR resources, perfect for those who have vast experience under their belt and feel comfortable in Ruby on Rails environment: Ruby on Rails Books for experienced developers
Security Updates for Ruby
New Ruby versions released with security updates as four new CVEs have been publish on September 14th, 2017. [more inside]
Validating Form Objects
Where should we place validations? In the model or in the form object? We answer this question in the third and final article of the series on Form Objects.
Crystal ANN - announcements for Crystal language
We are happy to share with you a resource similar to RubyFlow, but for Crystal programming language. Can’t wait for your announcements ❤️
Rails & GraphQL
Two articles I wrote on GraphQL in Rails: The first is about implementing GraphQL in Rails and the second is about GraphQL performance.
Rails: make sure you have proper DB indexes for your model’s unique validations
An article shows 2 solutions how Rails model’s unique validations should be implemented to save performance https://medium.com/@igorkhomenko/rails-make-sure-you-have-proper-db-indexes-for-your-models-unique-validations-ffd0364df26f
Lessons learned from using Capybara for feature testing
I’ve compiled a list of techniques learned while writing feature tests in Capybara. Read the full article here.
Ruby gem to have automatic scopes for ActiveRecord models
I use these modules in most of my projects to have useful scopes based on columns’ types (dates, times, strings and numerics). I finally took the time to extract it into a fully reusable gem :) https://github.com/BaseSecrete/type_scopes
Top 15 Ruby on Rails web applications
Most famous web applications written with RoR towards the web domination!
Dockerize and Deploy to AWS EC2 your rails app
Folks, a few weeks ago I dockerized and deployed my rails application to AWS. I hope that it be useful to someone. [more inside]
Use DidYouMean in your own code
DidYouMean, bundled with recent Ruby versions, does pretty error messages with suggestions, like undefined method 'cover' for 1..10:Range. Did you mean? cover?. If you want to implement the same functionality for your own entities (some tags, lexemes or metaprogrammed things), you will probably find this small wrapper gem useful.
How to use Elm Components in a Rails Application
Let’s see how simple it is to use Elm components in our Rails 5.1 application
Do Turbolinks apps still need SJR?
With Turbolinks handling so much out-of-the-box, do SJR templates (js.erb) have any role to play in a modern Rails app? Has SJR been replaced by Turbolinks? This article discusses the answer
Forget conditionals, use the Rail way
Most of the time, with growing uncertainty, code goes rightwards. Nested conditions are difficult to read and error prone. The real intent is to check success/failure path, so why not make it clear?
Fighting for Open Source Sustainability: Introducing Code Sponsor
tl;dr: Two-thirds of the top OSS projects are maintained by one or two people. This is not sustainable. We can help. [more inside]
[Screencast] Single Table Inheritance
Learn to use single table inheritance to allow multiple classes to be stored in the same database table. https://www.driftingruby.com/episodes/single-table-inheritance
7 Successful Stories From Ruby On Rails Web Development
Ruby is a programming language while Rails is the web application framework that implements it. Developed by Yukihiro Matsumoto, Ruby on Rails has found utility in some of the coolest and widely known projects worldwide. Here are few that catch the limelight. 7 Successful Stories From Ruby On Rails Web Development
15 Things To Do With Ruby Awesomeness
Once upon a time, there was a super fun to write programming language called Ruby…
Rails on Docker: Using Docker Compose with Your Ruby on Rails Apps
Learn to use Docker Compose to configure and manage Docker containers for your Rails apps: [more inside]