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.
Rails Autocomplete with Selectize and Searchkick
A simple overview of how to create an efficient autocompleting select menu in Rails 5.1 using Selectize and Searchkick (ElasticSearch). Read more
Ruby Standard Gems
Ruby’s standard library will be gemified. This means that stdlibs will be updatable as gems, without having to wait for a new release of Ruby itself. I put up stdgems.org to keep track of which Ruby version comes with which standard gems.
[Screencast] Autocomplete with HTML Results
Working with an autocomplete can be very simple. However, things get complicated when you try to use HTML markup in the displayed results. Learn how to use HTML markup within your autocomplete results!
Do you imagine yourself programming for 50 years?
Would you even want to? What do you think? Read more
Tracebin - A "bin"-style APM
Tracebin is a lightweight and simple APM that works with your Rails or Sinatra web application. You create a “bin” and install the agent, and we’ll collect performance statistics and display the most recent 24 hours of data on a simple page. Tracebin is an open-source project that we built from scratch! Here is an educational article on how it’s all put together! GitHub | Website
When you're a Rails developer but your client wants WordPress
When you’re a Rails developer but your client wants WordPress Read more
Universal feedparser gem adds authors & tags/categories for RSS, Atom, @JSONFeed
Hello, I’ve updated the universal feedparser gem. What’s news in v1.2? Added authors and tags/categories for all formats, that is, RSS, Atom and the new JSON Feed format. Use feed.author or feed.items.first.author or feed.items.first.tags and so on. PS: What’s JSON Feed? See the talk notes “Meet Jason Feed - The New Web Feed & Content Syndication Guy”.
Testing cookies in rails
Testing cookies in rails, in especially important difference in handling (and therefore testing) of cookie’s expiration time in different kind of specs (controller specs, request specs, feature specs). Read more
Last 36 hours for the Rails Composer Kickstarter
You can support the work required to update Rails Composer for Rails 5.1 with a contribution to the Kickstarter campaign. Rewards include two months of GoRails and one month of the Learn Enough Society. There’s just 36 hours left to reach the fundraising goal.
Refactoring series: acts_as_list part 3
In this refactoring adventure I’m going to focus on just one 11-line method, and surprisingly, there’s a lot of things that can be improved in just one method. Watch as I choose better names, strip unnecessary variables, work with some ActiveRecord internals and make code intent clearer.
How to convert a Ruby primitive to a custom domain object in two minutes
You already know why you want to use domain objects instead of Ruby’s built-in primitives… but what do you do if you’ve already used strings and integers all over the place? Did you code yourself into a corner? Are you going to have to change lots of code, and potentially break things? Of course not! You can convert a Ruby primitive into a custom domain object in just a few minutes…
Conference Talks, Interviews, and the Pen!
As many of the people who follow this feed are tech conference speakers, I’d be interested in hearing feedback on my take of most tech talks.
My 2.5 Year Journey with Vim and Why I Switched Back to Sublime Text
My 2.5 Year Journey with Vim and Why I Switched Back to Sublime Text
Ruby Case
Well, today I bring the way how Ruby treats it’s switch case. Let’s go, check out this post:
Simple tutorial on how to integrate Facebook and Rails 5
Learn how to do a simple Facebook integration in Rails 5 using Devise, Omniauth and Koala.
Exploring infinite sequences
Infinite sequences can make some algorithms (like numerical analysis) more clear by allowing common code to be reused. Haskell’s lazy evaluation makes infinite sequences easy in that language, but it’s possible in Ruby, with a little work.
Using React in your Rails app
Learn how to use React easily in your new or existing Rails app.
Writing Ruby gems with Rust and Helix
Learn how to write (from scratch) faster Ruby gems with Rust and Helix.
Why write code when more dependencies will do?
Adding gems is so easy, but sometimes your own code is better. Why write code when more dependencies will do?
Obey the "Single Level of Abstraction" rule
This rule helps to make your code more readable, you must obey the rule.
Lessons learnt in our third year running a Ruby dev consultancy
Hola everyone! It’s been a while since I haven’t posted anything, but I’d like to share our latest blog post. Read more
A quick tour of metaprogramming
If you pry into the beating heart of any Rails application, any testing framework, any beautiful DSL, you’ll find it filled with metaprogramming: code that writes code. In fact, a lot of the features Ruby devs use would be impossible without it. Yet many of us prefer to avoid metaprogramming in our own code. This is a brief tour of metaprogramming for Rubyists.
Rails_DB upgrade
Thanks to @bbenezech of doing a lot of changes to rails_db gem and cleaning up some dependencies. Read more
Rails 5.1 adds delegate_missing_to
This blog discusses how Rails 5.1 added delegate_missing_to method.