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.
RailsConf 2016 - Build Realtime Apps with Ruby & Pakyow By Bryan Powell
Building Realtime Apps with Ruby & Pakyow Client-side frameworks dominate the conversation about the future of web apps. Where does that leave us Ruby developers? Let’s explore a way to build realtime apps driven by a traditional backend, without writing a single line of JavaScript! You’ll walk away with a new way to build modern, realtime apps employing client-side patterns.
Always Include Two!
Quick Ruby quiz question: What is the difference between Ruby’s two ASCII encodings? Second question: What is the difference between Ruby’s two implementations of strftime()?
What Makes Brakeman Special
A quick blog post about what I think has made Brakeman (the static analysis security tool for Rails) special and successful.
The Straight Dope on Deprecations
Richard Schneeman peels back the seemingly simple veneer of deprecations, and we will learn when and how to use deprecations effectively.
Know Ruby: with_index
Have you ever used with_index? Not each_with_index which is similar but slightly different. Did you know that you can do map.with_index? Read More
How to change primary key column size(type) using Rails migration with MySQL?
It is really painful. Rails doesn’t support it out of the box. [more inside]
Just released convertkit-ruby, what add-on will you build?
Do you use Convertkit for email marketing and need a feature that’s not available yet? It’s now easier to build private integrations for Convertkit using your favorite Ruby web framework with convertkit-ruby.
Method chaining and lazy evaluation for HTTP-APIs
The latest update of LHS, an ActiveRecord-like library to use with HTTP-APIs, includes method chaining and lazy evaluation. Since version 5.4.0, LHS provides chainable scopes and where queries, it also accepts pagination methods and request based options as part of the query-chains. https://github.com/local-ch/lhs
Trailblazer Newsletter May 2016
The May 2016 newsletter discusses Cells 4.1, how it simplifies layouts and makes ActionView redundant, TRB and Hanami’s increasing gravity and what’s been happening in the Ruby community this month.
Improving open-uri
Open-uri is a part of Ruby standard library, and for me it’s the simplest way to download files from URL. However, it has its limitations, quirks, and also security issues, so I made a wrapper around open-uri which aims to address these issues.
Ruby Methods for Type Conversion and Equalness
Idiosyncratic Ruby takes a detailed look at two rather confusing APIs of Ruby: Methods of type conversion and the different kinds equalness
New version of pluck_to_hash gem now supports pluck_to_struct
Just released new version of pluck_to_hash gem. It now supports pluck_to_struct method leading to even more cleaner code. https://github.com/girishso/pluck_to_hash
A better way to do Rails tutorials
In this post, I will show you how you can master, any Rails tutorial. I use authentication as an example.
How to use different primary key in Rails with MySQL?
Want to use different primary key field over default id? Want to use different data type for primary key? [more inside]
How To Implement Simple Authentication Without Devise
Devise gives you a lot of functionality out of the box, but it can also be frustrating. Authentication is actually pretty simple! This article shows a tiny web app with a simple manual implementation, in under 100 lines of code: http://www.rubypigeon.com/posts/how-to-implement-simple-authentication-without-devise/
Delayed Job Queue Fairness
This week on the Salsify Engineering Blog we tackle the difficult topic of ensuring fair distribution of delayed job processing resources across tenants in a multi-tenant SaaS application. Check out the post! http://blog.salsify.com/engineering/queue-fairness
Refactoring of CreateSend library, part 2
Continued refactoring of an OSS project. If you get bored, skip to step 6. http://rubyclarity.com/2016/05/createsend-refactoring-part-2/
Rails has won: The Elephant in the Room
Many people are worried about the current state of Rails. Many are choosing to leave the Ruby community altogether. Are all these concerns really something you should also worry about? They are not wrong. But I think there is more context to it. Let me explain.
[Video] Docker: Rails Worker Process and Redis Service
In this episode we show you how to run a worker service using docker. We will be specifically focussing on sidekiq, and getting all that hooked up to the redis service also running with docker.