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.
Ruby Time Classes
https://www.youtube.com/watch?v=mRu8guNMz2A
Stay Static - Static Site Builder / Generator Showcase + Samples (Jekyll 'n' Friends)
Inspired by the TodoMVC showcase I’ve started to put together a static site builder / generator showcase named Stay Static. The idea is to helping you find your static site builder / generator that works best for you. The first two live static site samples include Jekyll (Ruby) and Hugo (Go). The standard sample showcases 1) pages 2) post and 3) custom content types (e.g. bookmarks ‘n’ links). Is your static site builder / generator missing? New sample static sites welcome. Cheers.
What is Memcached?
A gentle introduction using Ruby http://davidmles.com/blog/what-is-memcached/
How to save time writing model tests with shoulda matchers
Perfect for beginners, this post shows you how to save time writing tests for your Rails models using shoulda matchers.
Outside-In Testing for Ember Apps
Outside-in testing allows the code to guide us through the testing process. We don’t decide beforehand how many tests to write, or what exactly to test. Article here.
Refactoring in Ruby: The right place for a Builder?
In this blog post I cover how to refactor a simple code smell using the Builder Pattern by example. Also, I show another situation where applying the Builder Pattern comes handy. Check it out here.
Debugging SystemStackError
Below Ruby 2.2, debugging stack overflow errors can be painful because the backtrace is swallowed. Learn a quick workaround with Ruby method tracing. https://rossta.net/blog/debugging-systemstackerror.html
101 Ruby Code Factoids
Whomever you may be; you will learn something new about Ruby. http://6ftdan.com/allyourdev/2016/01/13/101-ruby-code-factoids/
Configurate ENV with Ruby syntax
Build-in uploader to Heroku. https://github.com/SergXIIIth/config_env
Chromebook for Ruby on Rails developers
You don’t need expensive laptop to be a web-developer or sys-admin guy, all you need is an attitude to get things done. In this article I’ll give you my experience on developing commercial web-application backend via chromebook http://www.eq8.eu/blogs/18-chromebook-for-web-developers
How to find out if a name is reserved in Rails 4.2.5
You can use the rails console to programmatically find out if a given name is reserved in Rails 4.2.5. Read more about it here: How to find out if a name is reserved in Rails 4.2.5
Improvements to error responses in Rails 5 API mode
I wrote an article that presents some improvements to error responses in Rails 5, specially focused on its new API mode.
local gems dependency structures
I wrote an article that digs in to the technical details and the gotchas of using a local gems dependency structure to incrementally design Ruby applications: http://teotti.com/create-dependency-structures-with-local-ruby-gems/
Upgrading to Ruby on Rails 5
Lugo Labs website is now running Rails 5.0.0.beta1 on production. The process was smooth overall, with some little tweaks. You might need to make your own tweaks to your apps, depending on the gems you’re using.
How To Parallelize Ruby HTTP Requests
It turns out that managing web requests is quite important when doing web development. A web application backed by an external or internal API can issue a lot of requests when rendering a seemingly simple web page. How those requests are made and in what order is very important. With improper parallelization, an end user’s entire experience can go from delightful to horrific in a matter of seconds. Event Machine can help make sure external requests are efficient and user experience remains great.
How to interact Instagram API in Rails
This article will show you step by step: http://goo.gl/meCD3m Tags: #rails #instagram #api
Announcing Lotus v0.6.0
ANN Lotus v0.6.0. Tons of assets features: helpers, precompilers (Sass, Less, ES6, JSX, CoffeeScript, Opal, etc..), compressors (YUI, UglifyJS2, Google Closure Compiler, and others). Fast deploys, Heroku support and Content Delivery Networks (CDN). Minor features: custom app initializers, new Rake tasks, destroy command, custom inflections and small fixes.
Learning by Small Things
How I discovered that, as experienced developers, our culture of over-engineering and big picture thinking can lead to simple problems throwing us off, and how they can be a great learning experience.
a href="https://github.com/mz026/hash_police">HashPolice - hash format checker/a>
Hash Police is a gem to check whether given two hashes are of the same format, with readable result format and API. It can be used in testing to make sure the api response JSON format is as expcted by using a sample hash and is easy to integrate into testing frameworks like RSpec.
Tuxedo: 150 LOC Implements Presenter Logic in Rails
Dress up a boring looking instance with a Tuxedo suite and you have something nice to look at. Tuxedo is a simple gem that allows you to wrap any ruby object in a presenter. It attempts to use as little black magic as possible, 100% tested and documented. Read more