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.
Docker: Running a Rails App Container with PostgreSQL Service
In this 13 minute episode we show you how to run a rails app using docker and connect it to a postgresql service. We cover how to work with environment variables and how to configure your database to work when running your app with docker.
New Framework built on Sinatra
Check out for an this new awesome framework I found a couple of days ago!
How to Test Rails Models with RSpec
A tutorial that teaches you how to test your Rails models using RSpec and the Behaviour-driven Development approach.
New validation syntax for Hanami
Hanami will introduce a new syntax for validations based on predicates. It features builtin and custom predicates, type safety, specific coercions for HTTP params, whitelisting, custom error messages with optional i18n support. This release will start a new alliance between Hanami and dry-rb.
Sending Web Push notifications from Rails
Web Push is a new JavaScript API that allows you to engage with your users even when they’re not on your site. Here’s a look at how to set up a Rails application to deliver Web Push notifications
[Screencast] Infinite Scrolling
Infinite scrolling is now a common feature and there are several cases where it is really useful. For instance there are some websites where we simply can’t imagine a good pagination system, like Twitter or even Facebook.
A Sinatra Mock Server
A lightweight Sinatra application that can be set up as a mock server to respond to API end points which respond to HTTP verbs. No need to program mocks using a language specific implementation for testing. Easy to use user interface to maintain mocks. Just supply a URL along with the HTTP headers and return codes along with the response body to set up a mock response. Can be used for manual testing and automation testing of client applications. Further details can be found at. .
Sample telegram bot on rails
With sessions and support for contextual messages. Built with telegram-bot gem. https://github.com/telegram-bot-rb/telegram_bot_app
How to conservatively update a single gem with bundler
A quick exploration on how bump a single gem, excluding its dependencies and not relying on bundle update –source, which isn’t reliable:
Writing Ruby gem in Rust
How to pass complex data structures and build native library on gem install. Plus an example gem.
Keep MarkerClusterer working after Google shut down svn-repos
Here is short gist with instructions how to prepare self-hosted images, if you use google-maps-utility-library in rails application:
Infinidb: a Peer-to-Peer Distributed Database and Transaction System
Wouldn’t it be cool if you could type in your code: [more inside]
Routing HTTP requests with Nginx+Mruby
A short article on using ngx_mruby - the Mruby module for Nginx - to dynamically route HTTP requests based on hostname (that is, without restarting Nginx or changing the config files):
Tensorflow is Coming to Ruby!
SciRuby and somatic.io have decided to work together and mentor a student to get a “Google Summer of Code” like project up to make Tensorflow usable from Ruby. This project will last over the 2016 summer and we expect to be able to run some of the tutorials from the Tensorflow documentation directly in Ruby. - See more at:
Keeping your Ruby on Rails app easy to update
Some tips on how to maintain the Rails framework updated without much effort. Keeping your Ruby on Rails app easy to update « Plataformatec Blog
active_record_doctor
A tool that’ll automatically index all foreign keys and detect extraneous indexes - www.github.com/gregnavis/active_record_doctor. More coming soon!
Inspecting the Ruby Interpreter
Ruby gives you access to a lot of information about itself: They can be accessed via various special variables and ObjectSpace. There is also the special RbConfig hash.
Rails 5 supports bi-directional destroy dependency
We can now add bi-directional destroy dependency on Rails 5 associations [more inside]
How to Build a Math Evaluation Engine
My guest post on the Codeship blog explains how you can build your own eval engine
Don't Forget About Infinite Enumerators
When was the last time you created an Enumerator? We use enumerables all over the place but it’s rare to see “Enumerator.new”. If I’m being honest, sometimes I forget it’s an option. I’m guessing you might as well. [Read More]
Dead Simple Blog Setup With ButterCMS
We recently decided to move our blog off of Tumblr and into our main site. We wanted our blog to feel more like part of the main site and an integrated blog is also more SEO friendly. We thought about publishing our blog as static files with Jekyll. However, it quickly became clear that sharing our main HTML layout file between Jekyll and our main Rails app was not going to be elegant. The layout file needed to be duplicated, making it tedious to keep up to date.
More Slide Show (S9) Presentation Templates Now Jekyll-Compatible - CSSS, Slidy
Hello, I’ve added new presentation / slide show template packs, that is, converted (“liquified”) and GitHub Pages/Jekyll-ready/compatible: 1) CSSS by Lea Verou - ready-to-fork/use template pack and live demo. 2) Slidy by Dave Raggett - ready-to-fork/use template pack and live demo (w3c) and live demo (blank). 3) Shower by Vadim Makeev - ready-to-fork/use template pack and live demo (ribbon). [more inside]