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.
Where are all the intermediate Rails resources?
So, you’ve finished a few Rails tutorials. You might have taken a class or two or watched some screencasts. You’ve followed along and built a copy of some tutorial apps. It’s pretty clear that it’s time to move to the next level in your Rails development. Somehow, though, you’re stuck. There are tons of books, classes, and videos for people just starting out. But where are all the tutorials for intermediate Rails devs?
Managing Environment Configuration Variables in Rails
Wonder how to manage environment variables in Rails? In this article we discussed a few different solutions including Figaro, dotenv and Rails’ built in secret.yml [more inside]
Generating an HTML generator
In this post you will see how to generate an HTML generator using the meta-ruby gem. Our HTML generator will be similar to Markaby, a Ruby library to generate HTML in which the document structure is expressed in Ruby source code.
football.db - New 2014/15 Seasons - HTTP JSON API for Premier League, Bundesliga, Ligue 1, etc.
Hello, The plain text football fixtures for leagues, teams, match schedules, stadiums, and more that you can read with the sportdb gem into your SQL database of choice now includes the 2014/15 seasons for the English Premier League, the Deutsche Bundesliga, the French Ligue 1, and more. Or try the HTTP JSON API e.g. event/en.2014_15/teams or event/en.2014_15/round/1 and so on or better build your own HTTP JSON API using the starter kit. All data, code and samples public domain. Enjoy. Cheers.
Simple Benchmarking in Ruby
I wrote about a simple way to benchmark slow code in your Ruby & Rails apps.
kibana-rack 0.1.3 released
Unfortunately there was a regression in 0.1.1 where path that static dashboard files were served from was incorrect. If you downloaded version 0.1.1 of kibana-rack after the previous post, please upgrade to 0.1.3 immediately. [more inside]
Gem Glory - a set of useful gems for Ruby devs
A set of Ruby gems that save us a lot of time & effort in our daily work. And hey, if they help us, there’s a chance they can be useful for you as well! Taka a peek at 10 Gems To Make Ruby Dev’s Life Easier.
Ninefold CLI Gem 1.7.3 - now available
We have released an update (1.7.3) to our command line interface. This release is to address some API changes we have made with db backups. You will need to update to this version if you want to work with your db backups via the command line. Learn more
kibana-rack 0.1.1 released (important bugfix)
I just released a critical bugfix for a couple of issues in the initial release of kibana-rack. If you downloaded the initial release of kibana-rack over the weekend, please upgrade to v0.1.1 immediately. [more inside]
OpenSSL 1.0.1i
On August 6th there were a number of security advisories for OpenSSL. We have deployed updates on all affected instances, and all future deployments will automatically include the updates. Learn more
[BUGFIX] Inch 0.4.8
I had to release an important bugfix to Inch related to the generation of the “Inch Rake task”. If you use Inch in your Rake tasks, please update to the new version 0.4.8!
gem-compare: A new way of tracking upstream changes for RubyGems
Read about a new RubyGems plugin for tracking upstream changes and check the project on GitHub.The project was originally develop for the needs of Ruby package maintainers, but can be effectively used by anyone. Need to know how the dependencies evolved through time for the rails gem? Then just type gem compare rails '>=0.0.0' --runtime.
finite_machine 0.9.1 bug fixes
finite_machine got another release with few bug fixes. Please give it a try and if you want to share your thoughts, report a bug, request a feature go to issues
Nginx (and Puma behind) maintenance mode for Rack/Rails applications with Capistrano
There is a time, when we need to switch our apps into maintenance mode. Maybe it is because of some data processing stuff, maybe because of backups, deployment or whatever good reason you might have. To be honest it doesn’t matter why. What does matter, is how we should handle working users of our apps. In this article I describe how to setup an automatic maintenance page that will show during each Capistrano deploy. Nginx (and Puma behind) maintenance mode for Rack/Rails applications with Capistrano
kibana-rack 0.1.0 released
I just released the initial version of kibana-rack, a gem for embedding Kibana in a Rack/Rails application.
Common mistakes in Ruby on Rails
Go through this Common Mistakes in Ruby on Rails
Inch 0.4.7 released
I just released a new version of Inch, a tool to evaluate and lint your inline-docs. [more inside]
Zero Downtime Delayed Jobs
Just posted about a script I created to do zero downtime delayed job restarts. Please check it out and give any feedback! [more inside]
DNS to CDN to Origin
Content Distribution Networks (CDNs) such as Amazon CloudFront and Fastly have the ability to “pull” content from their origin server during HTTP requests in order to cache them. They can also proxy POST, PUT, PATCH, DELETE, and OPTION HTTP requests, which means they can “front” our web application’s origin like this: DNS -> CDN -> Origin.
How to Add Comments to Rails App with Commontator
I’ve wrote tutorial about how to add comments in Rails using commontator gem.
A new version of middleman-presentation is available
I released a new version of middleman-presentation:
Version Number
To make it easier to build and maybe reuse a presentation, you can now add a version number to your presentation
Custom Slide Template
Now it is possible to define a custom slide template.
Easier creation of themes
Now there’s a helper command available which makes theme-creating a lot of easier.
Footer for your presentation
Now middleman-presentation displays a footer on each slide (from the 2nd slide on) with your name, the copyright and the version number
Language detection for new presentations
Now it tries to guess what’s the best language to use (based on the LANG-environment variable) when you create a new slide using the slide-command
Make debugging of slides easier
With this release you find HTML-comments with the file name in the rendered output.
beer.csv - Open Beer Data in Plain Text (CSV) Fixtures w/ Ruby Build Scripts
Hello, Using Ruby build scripts, that is, rake tasks, I’ve built up a new GitHub org, that is, beer.csv - for open beer data in the CSV (comma-separated values) format, that is, plain old text. To get started I’ve added - for a change - beer statistics such as production, imports, exports, consumption, consumption per head, etc. for countries. Cheers. Prost. Salud. Kampai.
Call for submissions: Ruby on Rails Interview Questions
Check out Toptal’s new community-driven list of great Ruby on Rails interview questions. We’ve begun with an initial sampling of questions. Read them, comment on them, or even contribute your own. [more inside]
Rails logging into several backends
Found a simple way to make several logging facilities in Rails.
Avoid AngularJS Dependency Annotation with Rails
Annotating AngularJS inject dependencies got you down? Using Rails? Try disabling variable mangling during JavaScript minification to alleviate your woes.