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.
RubyMine 2017.1 is released!
RubyMine 2017.1 is released featuring Docker and RuboCop support, test generation for Rails, Puppet improvements and lots of other things. Learn more and give a try https://www.jetbrains.com/ruby/whatsnew/.
A Brief History of Dependency Management
We take modern dependency management solutions for granted these days, but how did it all start? What are the most important ideas and when and where were they introduced?
Specification Pattern
Implementation of Specification pattern described in “Domain-Driven Design: Tackling Complexity in the Heart of Software” by Eric Evans. Flexible way to combine and chain business rules by using boolean logic. Read More.
Always install Bundler alongside Ruby with rbenv
A quick tip that lets you setup gems that always get installed when using rbenv and ruby-build to install Ruby. Never kick yourself that you don’t have Bundler for this version of Ruby again.
Words Counted: A gem that counts!
A gem that count words frequencies, longest words, total words in paragraph and much more! [more inside]
27 Gems I use in almost every project and pretty much can’t live without
The Rails community thrives on its open source gems. Implementing a well written, well tested and vetted gem can make the difference between days and weeks of development of new features. Read More
Practical Computer Science in Ruby: Using Stacks to Solve Problems
Learn how to apply a simple (but powerful) computer science concept to solve problems with Ruby. http://www.blackbytes.info/2017/03/computer-science-in-ruby-stacks/
The Cracking Monolith: The Forces That Call for Microservices
A majestic monolith works in most cases. But when your Rails app grows multiple apps within, and meets high traffic with large volumes of data — that’s the right time to start thinking about microservices. Read more.
Let’s make Ruby app servers & operations better! With your feedback.
I am Hongli Lai, developer of the Phusion Passenger app server. We think the state of Ruby application delivery & operations can be made easier, faster, more reliable, and better. So we’ve embarked on a mission to do precisely just this (and to improve Passenger while we’re at it). [more inside]
Select or Create Field with Selectize.js
Sometimes you need users to create associated records while filling out a form but it’s hard to do with the built-in Rails forms. Selectize.js gives us a great option for building a select or create field all-in-one to choose associated records or create new ones when filling out a form. https://gorails.com/episodes/select-or-create-with-selectize-js
Rack-reqorder: Metrics, exception monitoring and request/response recording for rack
rack-reqorder is a middleware that sits in rack and allows you to: [more inside]
Validate email address against common typos and burners
A gem that backs a “Did you mean john.doe@gmail.com ?” feature for your registration forms. For common gmai.com hotmil.com yahou.fr and alike typos. Detects burner email addresses too. https://github.com/maximeg/email_inquire
Maintaining Active Record Associations with Edit Form Partials
Maintaining Active Record Associations with Edit Form Partials - or “How to Avoid Over-complicating Your Solution”. Read The Entire Article Here
4 Ideas for Improving Testability in Web Apps
Here I share some of my programming tactics for achieving testability in Rails apps. The strategies include: Explanatory (not exploratory) dry runs, Backdoors, and Interface Hooks. [more inside]
[Screencast] Intro to Docker on Windows
Developing a Ruby on Rails application on Windows can be difficult, but doesn’t have to be with Docker. Learn how to use Docker to create isolated containers and get them to talk with the Rails app and passed through to the local computer. https://www.driftingruby.com/episodes/intro-to-docker-on-windows
Devise with OmniAuth for Single and Multiple Models
In this post we’ll describe on how to use OmniAuth in combination with Rails and Devise to support authentication of existing and new users without asking for email/password combinations. https://blog.kodius.io/2016/12/20/devise-omniauth-multiple-models/
tty-prompt with line editing & history buffer
The newest tty-prompt comes with line editing and history buffer support. It also adds new multiline prompt for gathering, you guessed it, multiline input. Also, it sports brand new keypress prompt that pauses for key press with additional timeout option. Enjoy!
OptionParser With Commands
How to extend Ruby OptionParser, so that it can also parse commands from command line. https://dracoater.github.io/2017/03/OptionParser-with-commands
TheOpenCMS. Weekly report #2
Hi there! There is a weekly report about my progress on my CMS project Changelog vol. 2
HexaPDF 0.4.0
Composite font support and many CLI enhancements - https://hexapdf.gettalong.org/news/2017/fourth-release.html
Correios CEP gem v0.6.3
Using latest Ox version and some performance improvements regarding strings. [more inside]
Hanami v1.0.0.beta3
Small bug fixes, deprecated API removal, new input helpers for forms. http://hanamirb.org/blog/2017/03/17/announcing-hanami-100beta3.html
Adding a User Index In Rails with Devise
As the application administrator I want to be able to view who all has signed up for accounts in my application and the last time they signed in. This view and functionality isn’t built into devise, so we’re going to be building it Click here for full article