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.
DeepEnumerable
A library for manipulating nested collections: https://github.com/dgopstein/deep_enumerable
Complex Static Sites on Heroku
Hosting a complex static site on Heroku is a lot easier than it seems.
ANN Lotus v0.3.1
RESTful nested resource(s), dirty tracking and timestamps for entities, improved code generators, bug fixes. - http://bit.ly/1KRSJb2
Ruby’s instance_exec method
instance_exec is a method you can use to change the “scope” of a block. One of the great advantages of doing this is that it can make your code more readable, particularly when writing a Domain Specific Language (DSL). So how does instance_exec work and why would you ever want to write a DSL? [more inside]
Asset Pipeline In Rails 3.1.0
Asset pipeline provides a framework to concatenate and minify or compress JavaScript and CSS assets. It also adds the ability to write these assets in other languages such as CoffeeScript, Sass and ERB. In Rails 3.1, the rails asset pipeline is enabled by default.
Building a Slack slash command with Sinatra, Finch and Heroku
Slack is awesome. We use it on a daily basis to keep in touch with pretty much everyone. With all the positive press it’s been having, we thought we’d see if we could create a simple bot which would respond to slash commands. [more inside]
Text Processing with Ruby is in beta
A book about data munging, text processing, screen scraping, and generally making sense out of text, published by Pragmatic, is now in beta.
Where have all the libraries gone?
Anyone else noticed how few new libraries seem to be coming out in Rubyland lately? I’ve been noticing it a lot through my work curating Ruby Weekly. It’s hard to find much to mention nowadays. I scanned through here too and every week there’s maybe one or two posts linking to new libraries. Have we reached “peak library”? :-) (By contrast, with JavaScript Weekly I’m totally inundated with new stuff..)
MySQL HTTP API and Ruby
An article about experimental HTTP API of MySQL and combining with Ruby http://ilyabylich.svbtle.com/experimental-mysql-http-api-and-ruby
Building a React.js event log in a a Rails admin panel
The simple example demonstrates how to build an event log using React.js. The first step to use events in Rails app.
Discussion with Bundler Core Team Members - Terence Lee and Smit Shah
Interview with Bundler Core Team Members - Terence Lee and Smit Shah. Discussion about their early contributions to OSS, getting started with contributing to Bundler, future plans for Bundler and where it’s headed.
Ruby on Rails Upgrade Guide
If you’re reading this, you’re probably contemplating a long painful process of getting your Rails app to a newer version. This guide covers the general guidelines to be followed for an upgrade to any version of Rails. [Continue reading…]
Exploring HTTP Requests With Ruby
Take a deeper look at HTTP requests in Ruby by writing a CURL client from scratch.
A new way to understand your Rails app's performance
If it takes seconds to load what should be a simple view, you have a problem worth digging into. And there are some Ruby tools that will show you your app’s performance problems, visually. When you use this kind of tool, you can find and fix your slow apps, faster.
Opalist Newsletter - Issue #3
Opalist is an e-mail newsletter showcasing the latest news and tutorials in the Opal (Ruby-to-JS source compiler) ecosystem and cutting-edge front-end development. In our third issue, we cover how to create client/server task objects in the Volt framework, TDD’ing Ruby code for the browser, and more.
Scheduling Crowd-Sourced Entropy with Webhooks
In Collective Idea’s latest blog post, learn how to use Dead Man’s Snitch to help crowd-source randomness. 🎲
Applying BDD to Ruby on Rails
How to apply the principles of behavior-driven development and use RSpec and Cucumber in your Rails projects like a cat on toast. Read the article.
Rails: Don’t “pluck” Unnecessarily
Using pluck in Rails is both quick and efficient. But there are cases where it’s not what you want to use. http://6ftdan.com/allyourdev/2015/05/13/rails-dont-pluck-unnecessarily/
Using Ruby and Elixir in unison
Connecting Ruby workers and Elixir websockets for Inch CI to achieve some auto-loading JavaScript magic has been a fun exercise. Read the blog post: Pour me an Inch of that Elixir
RubySteps podcast w/ Jim Remsik, Jr.
In episode 003 of the RubySteps Podcast, Jim Remsik shares how he went from working at a government job, to getting paid to interview at HashRocket, to ultimately creating his own consultancy, adorable.io and running Madison+ Ruby.
A Sequel plugin for eager loading associations in JSON APIs
I have created a Sequel plugin that helps eager load associations when exposing objects to a JSON API. You can now enable consumers to choose which associations they want returned with the primary object, but without those pesky N+1 queries.
Fake a SMTP Server with Python for Rails Testing
When you don’t want the mail to send but you still want to test it with Rails without it raising an error. http://6ftdan.com/allyourdev/2015/05/12/fake-a-smtp-server-with-python-for-rails-testing/
Idiosyncratic Ruby: Episode 9-12
The last days of idiosyncracies: All perlish special variables, ENV is no hash, regular extremism, and irb --inspect features.
Representation of your objects to JSON
Reptar is a microlibrary for write representations of objects to your JSON APIs, hope you enjoy it!