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.
Using SSL with Passenger in development on macOS
Curious about using SSL with Passenger in development on macOS? Phusion’s got you covered: https://blog.phusion.nl/2016/07/27/using-ssl-with-passenger-in-development-on-macos/
Behind The Scenes: How Numbers Work in Ruby
Why do we use Floats when they can be imprecise? Why are Fixnums special? Find the answers here: http://www.blackbytes.info/2016/07/numbers-in-ruby/
MiniStatsD: A simple StatsD client in Ruby
This gem is simple and lightweight implementation of a StatsD client in ruby and can be installed without Node.js or any other javascript dependencies. [more inside]
HOWTO manage Campaign Monitor lists with Ruby
A guide showing you how to access the Campaign Monitor API with Ruby to manage your Campaign Monitor list subscribers: http://readysteadycode.com/howto-manage-campaign-monitor-lists-with-ruby
Simple Gem To Make Your Model Activatable
Aktibibo is a simple Ruby gem that makes your model “activatable”. [more inside]
You can finally properly develop Ruby projects on Windows!
The Windows 10 Anniversary is almost upon us, and I decided to test the latest Preview Release and it was a very good surprise: almost everything we need to develop Ruby projects is working just fine. Not just Ruby, but Javascript/Node, Crystal, Golang, they all work! Check out my review.
Rails Performance Fieldbook: Debugging memory bloat
We’re publishing an open-source fieldbook on the hard lessons dev teams learn scaling Rails apps. The first chapter shows how to identify and resolve memory bloat.
Announcing PushType: A next generation content management system for Ruby on Rails
For almost two years, I’ve been quietly working on a new content management system for Ruby on Rails, called PushType. PushType is designed for developers and every design decision has been made so that the process of actually building sites is made easier.
Screencast: Fast Testing Workflow With Test.vim
In this short video I want to demonstrate a fast TDD workflow using the Test.vim plugin by Janko Marohnić.
How we Integrate React with Rails at Ivy
We decided to roll our own React-Rails integration at Ivy six months ago ago, and we’ve never looked back. Read this clear guide to integrating React with your current Rails setup without sacrificing a complete, flexible front-end toolkit.
[Screencast] ActionCable - Part 3 - Securing Your WebSockets
Using authentication and authorization, lock down your ActionCable WebSockets so that messages are only sent and received to the intended users. https://www.driftingruby.com/episodes/actioncable-part-3-securing-your-websockets
New screencast series for Rails and more
I’m the author of the book, Learn Ruby on Rails, and I’ve been working with Asia Granada to create a new screencast series for beginners, Fullstack Videos.
Consider Turbolinks 5 for your next Rails project
Turbolinks 5, for me, has become a default. Its speed benefits are impossible to ignore, and it makes an excellent user experience possible without a JavaScript MVC. Here’s how I use it and why you should consider it too.
Rbenv - How it works
Dealing with rbenv errors without Google or Stackoverflow. This post explores how rbenv works under the hood. https://medium.com/@Sudhagar/rbenv-how-it-works-e5a0e4fa6e76#.gxv1uahvm
Remote work
Are you working remotely already? We Ruby developers are more connected to remote work than the other language developers. I thought it would be relevant to share here my personal experience on this subject. http://davidmles.com/blog/remote-work/
A web console for Rack
I’ve just released rack_web_console which is basically a port of my other gem rails-web-console that could be used with any Rack application. Here’s a “hello world” config.ru:
Hanami v0.8
New validations syntax with predicates, high level rules and error messages. JSON logger format, faster static assets serving. Subresource Integrity, updated Content Security Policy, and new HTTP security headers. http://hanamirb.org/blog/2016/07/22/announcing-hanami-080.html
RubyDay is back! In Florence!
RubyDay, the Italian Ruby Conference, is back again in 2016. This time we’ll take you in the beautiful Florence! http://www.rubyday.it [more inside]
worque - Manage your daily notes like a boss
Ever stunned when your boss suddenly asked what you’ve done yesterday? Wanna check all your daily tasks without exiting your favourite editor VIM? Something to report on daily stand-ups? Then worque is definitely a right tool for you! Read more about it here
Rails 5 fixes ambiguous column issue for projected fields in group by query
We now don’t have to provide a table name in quoted string for fetching fields which are present in join table as well when used with group by clause. [more inside]
Webmock.io
Webmock.io allows you to create HTTP endpoints with custom responses (aka mocked web services). Every mock will be assigned a unique link that can be used to access it. All requests to this endpoint will be tracked and can be inspected on the history page. It also allows realtime debugging of the incoming requests by showing live updates on incoming requests to the endpoint.
respond_to |format| is useful even without multiple formats
You might think that if a controller action is only capable of rendering HTML, there is not much reason to use respond_to. After all, this is what Rails scaffold probably taught you. [more inside]
How To Perform A Task After View Render Using Threads In Rails
Heres a simple technique for running code after the render or redirect using a new Thread. https://solidfoundationwebdev.com/blog/posts/how-to-perform-some-task-after-view-render-using-threads-in-rails