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.
A polymorphic association is an Active Record association that can connect a model to multiple other models. Here’s how to implement polymorphic associations in Rails.
Security is an important aspect of application development. Two main components of security are Authentication (Who are you?) and Authorization (are you supposed to be here?). Authentication verifies the user’s identity while authorization verifies whether that user has access rights on certain resources to perform actions on them. [more inside]
A guide describing how Action Cable works in Ruby on Rails to enable Real time applications: https://www.icicletech.com/blog/real-time-rails-with-action-cable
A list of potential solutions in a situation when one of your sidekiq jobs starts to misbehave and affects the whole system’s stability: http://blog.arkency.com/2017/07/sidekiq-slow-processing-one-job-saturates-workers-rest-queue-up/
Have you ever found a Rails topic that didn’t make any sense to you? When you kind of know enough to get by, except you spend so much time fighting edge cases that you could have been an expert in it by the time you were done? That might mean it’s time for a deep dive.
Following the APIQ CMS 1.0 release, recently the most useful extensions were updated as well. Learn what’s new: https://www.apiq.io/2017/08/14/apiq-models-and-seo-1.0-release/
RSpec load time is important in a TDD workflow. Here’s how I got mine to be lightning-fast. https://schwad.github.io/ruby/rails/testing/2017/08/14/50-times-faster-rspec-loading.html
ice_cube is a ruby library for easily handling repeated events and schedules. https://www.driftingruby.com/episodes/recurring-events-with-ice_cube
Are you Ruby on Rails developer and eager to integrate React to Rails project? then try this: http://mayurkumar.info/blog/React-with-Rails-will-make-you-awesome-Web-Developer/
Some time ago I was working on a problem and I could not find a satisfactory solution. But when I reminded myself about recursive functions, it got much easier. Read the code and images illustrating the problem
Released my web application https://langtool.tech on Ruby on Rails. It helps developers with free automatic localization for their projects. Just select file for localization, wait a few seconds and take translated one. Supported yml, xml, json, strings, resx types.
Hi, few days ago I wrote a small summary of advanced Rails architecture patterns that are going beyond standard Rails mvc: https://github.com/CodeRocketCo/enhanced-rails-architecture
In this post I will walk you through how to teach a computer to master a simple video game using the q-learning reinforcement learning algorithm. We will implement the algorithm from scratch in Ruby without the use of external gems. Read more here: http://www.practicalai.io/teaching-ai-play-simple-game-using-q-learning/
I’ve just released the second major version of Mobility, the Ruby pluggable translation framework I’ve been working on recently. In this blog post, I describe some of the new features: extensibility through a plugins structure, more configuration options, enumerability, and more.
I’m working on a book about more advanced Active Record topics; please let me know if you’re interested or have thoughts on things to cover.
A benchmark of Fabrication and FactoryGirl (+ charts): https://ksylvest.com/posts/2017-08-12/fabrication-vs-factorygirl
Results of the survey regarding tools that Ruby developers use to keep the code in a good shape: http://rubyblog.pro/2017/08/results-of-the-code-quality-tools-survey?utm_source=rubyflow