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.
Don't trust everything Rails generates for you.
Rails’ scaffold generator can generate large swaths of functionality for your application. Just be careful it isn’t exposing more of your application than you intend.
Using PostgreSQL and jsonb with Ruby on Rails
Rails 4.2 introduced support for Postgres’ jsonb. In this article we’ll explore this new column type, see what are the differences against the already supported json type and how to perform queries from ActiveRecord. Check it out!
A guide to extracting your first Ruby Gem
Is your GitHub contribution chart solid gray? You could use an open source project to work on. And the easiest way to create a useful side project is to pull it out of the app you’re already building. But how do you know what to extract? And how do you turn it into a gem, without destroying your workflow?
Time: The Black Sheep of the Programming Family
No matter where you’re from, what programming language you prefer, or which JavaScript framework you’re committed to, we can all agree with on one thing: time is a royal pain to deal with. This post dives into the different formats and obstacles of dealing with time in Rails applications, pointing out some cool challenges developers have had to face along the way.
On the Road From Ruby Journeyman to Ruby Master
On the Road From Ruby Journeyman to Ruby Master: A reflection on my progression from Ruby newbie to more experienced Rubyist via one of my earliest Ruby scripts, its shortcomings, and a look at how I might approach the same problem today.
[TUTORIAL] How to send an SMS in Ruby, using Sinch
We wanted to make a helper library for Ruby developers to send an SMS from their Ruby applications using the Sinch SMS API. [more inside]
Disable dangerous rake tasks in production, now as a gem!
Some time ago I wrote a blog post about disabling dangerous rake tasks in production using a rake task. Today I was very glad to hear from @adamcooke that he turned it into a gem, rails-safe-tasks. Amazing to experience the power of open source firsthand!
Passing optional locals to Rails partials
Sometimes you need to pass an optional variable to a Rails partial without messing with the rendering of that partial elsewhere. This article shows how to do that. [more inside]
Sandi Metz's TRUE in action
Second in a series of posts I wrote about Sandi Metz’s TRUE heuristic. This week I use it to refactor some code and improve its design. Design is Refactoring
Open source: the new devise-iOS for simplified auth
Netguru Team has just released a new devise-iOS client for simple authentication, in open source, of course. Feel free to read more about it on our blog and contribute to Netguru’s open source: [more inside]
Michael Hartl's Tutorial with an API (and Ember attached to it)
I just forked Michael Hartl rails tutorial app and created an API for that. Then I built an Ember version of it which works pretty great! [more inside]
rubyhunt.org
http://rubyhunt.org/ - Best articles, news, gems and videos about ruby every day
Word Count Analyzer
Ever wonder why different tools produce different word counts? Word Count Analyzer is a new Ruby gem that analyzes a string for potential areas of the text that might cause word count discrepancies.
Ann: RSpec-Varys
RSpec-Varys is a plugin to RSpec-Mocks that generates new specs for any unverified calls to test-doubles. That means you can stub with impunity while developing smug in the knowledge that all your assumptions will eventually be accounted for. [more inside]
Verse release!
verse aim is to perform text transformations on single and multiline content. This currently includes alignment, truncation and wrapping of multibyte text with support for no whitespace languages(Japanese, Chinese etc…). Feedback much appreciated!
Integration Testing Celluloid Projects
Codegourmet wrote a nice 2-part post explaining how to test a celluloid project: http://blog.codegourmet.de/2015/02/11/integration-tests-with-celluloid-io-1/ and http://blog.codegourmet.de/2015/02/11/integration-tests-with-celluloid-io-2/
Use the given project generators
When there is a standard way for something to be done, then there is in essence a template that fits those standards. Learn about some of the basic generators that give you that template to build your project as they were designed to be used. http://6ftdan.com/allyourdev/2015/02/14/use-the-project-generators-and-learn-from-others/
Building an Unbeatable TicTacToe Game in Ruby - Part 1
The first in a short series of posts describing how I designed and implemented an unbeatable TicTacToe game using Ruby.
MemFs v0.4.3 released
MemFs provides a fake file system that can be used for tests. This new release allows to use YAML.load_file with MemFs in-memory files!
What is Rack?
Whether you’re in the market for creating your own framework, or just want a deeper understanding of how Rails works, it’s a must to know how Rack works.
Radio buttons & required boolean attributes
Just published a post about rails radio buttons & required boolean attributes.
Start Contributing to Rails
Some tips on not wasting time wondering what to work on. And showing a better way to give back. http://blog.kaspth.com/2015/02/13/start-contributing-to-rails.html