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.
[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
WebRTC Opentok in Ruby On Rails for Text chat
WebRTC Opentok in Ruby On Rails for Text chat: http://www.pandurang-waghulde.com/2017/03/webrtc-opentok-in-ruby-on-rails-for.html
How to setup and deploy a Rails 5 app on AWS ElasticBeanstalk with PostgreSQL, Redis
Deploying a Rails app can be a somewhat daunting task to get set up right on new applications, even for seasoned Rails developers. While Capistrano has been a main player in Rails app deployments, it seems to have fallen somewhat out of favor as load balancers and computing servers have gained popularity. Thankfully, AWS(Amazon Web Services) has created a tool for deploying and scaling Rails web application in their eco-system. [more inside]
Embracing Change: Rails 5.1 Adopts Yarn, Webpack, and the JS Ecosystem
Many naysayers would have you believe Rails is dead. Don’t believe the hype. With the coming of Rails 5.1 and its embrace of the JS ecosytem, Rails is solidifying its position as the king of web frameworks. read on
Rails - Organizing the Index Page into Topics
All of the companies in my custom CRM have a topic associated with them (“Architecture”, “Outdoor”, etc.) Several users want to be able to view a list of companies under each category before they begin contacting their leads so today we’ll set up an option on our index page to enable that action. Read the Full Tutorial Here
Bots On Rails: part two.
Second part of building bots on rails tutorial, in this part we will build onboarding flow and build our bot data model leveraging rails awesomeness.
Handling request cache in Ruby
Handling HTTP cache is one of the most important aspects when you need to scale a web application. This post explains how to handle back-end HTTP requests cache in Ruby apps to improve performance.
Characteristics
Need to do low-level string encoding work? Meet characteristics, a Ruby library that tells you some basic info about single codepoints, like: is it assigned? is it a control character? is it a whitespace? Works with Unicode and single byte based encodings.
Best Ruby / Ruby on Rails books
List of 20 best Ruby / Ruby on Rails books to read mentioned on stackoverflow.com
RuCaptcha - The best Captcha solution ever.
This is a Captcha gem for Rails Applications. It drawing captcha image with C code. That means you don’t need ImageMagick or RMagick any more. And it very fast. [more inside]
How to Sort Arrays in Ruby - BR
https://merubygirl.wordpress.com/2017/03/15/ordenando-arrays-em-ruby/
Draft Blog Posts in Middleman
We love the static site generator Middleman and used it to build RubyLetter. But Middleman doesn’t come with a drafts folder like Jekyll does. In this blog post, we walk through how to simulate Jekyll’s _drafts
folder in Middleman. http://www.rubyletter.com/blog/2017/03/15/middleman-blog-drafts.html
Dealing with Test Leakage
Writing tests is always a bit finicky. That said, these frustrations grow to their awful peak whenever your suite of tests turns up indeterminate results. The classic example is when one of your normally passing tests randomly fails—even though the code hasn’t changed one iota. [more inside]
Tips for Programming Accounting Features in Web Apps
At what point in your life did you realise you were no longer a child but rather an adult? Donning a suit for the first time? Or being obliged to make and pay rent, month after month? The web application developer equivalent of all this growing up is….don’t get your hopes up…accounting. [more inside]
Google Spreadsheets and Ruby
Sometimes you don’t need a database. Maybe you’re building a prototype or a simple internal application. Using a Google Spreadsheet can be quicker and easier to set up and get going with. Here’s how to use the google_drive gem to read, write and delete data from a Google Spreadsheet.
Faster Rails: How to Check if a Record Exists
If your Rails app is getting slower, here are some tips on how you can make your Active Record queries faster: https://semaphoreci.com/blog/2017/03/14/faster-rails-how-to-check-if-a-record-exists.html