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.
The Sorrows of Young Developer
Yesterday I was like inspired, and I wrote a short tale named The Sorrows of Young Developer. It’s about a young passionate developer that is working in this world of continuous feature changes, agile, etc.
Disable the Capistrano Stats Prompt Manually.
Since not every build tool uses a non-tty method of deployment, the Capistrano deploy will fail. This behaviour is undocumented at the moment, and requires a manual workaround. This post details how to disable the prompt, as well as how this could be found. I think this is one of the biggest advantages of open source, the ability to look through the source code to find answers to you problems.
Video Tutorial: Introduction to Ansible for Rails Apps
This tutorial gives an introduction to Ansible for server configuration. This is the first lesson in a course that shows you how to use Ansible for server configuration of a Ruby on Rails app.
A new Article Series for Ruby/Rails Developers – Join the Nuts & Bolts List
I wrote a few Ruby/Rails articles over the last couple of months and want to extend this. That’s why I created a Nuts & Bolts area where I’ll publish about 2 articles a month. Read more
Using ECMAScript 6 with Rails 4.2 Projects
Babel is a JavaScript transpiler that turns your ES6+ code into ES5 friendly code. Learn how to use ECMAScript 6 with your Rails 4.2 projects with the help of Sprockets and Babel.
Improve session security in Rails apps with Authie
This is a Rails library which provides applications with a database-backed user sessions. This ensures that user sessions can be invalidated from the server and users activity can be easily tracked.
All about Rails, with Rails Core team members Rafael França and Carlos Antonio
Interview with Rails Core team members Carlos Antonio and Rafael França, about early days of their Rails contribution, Rails team, Brazil Rails community, their day to day tools of choice and workflow, and how everyone can help out with Rails.
4 Ruby methods that are an order of magnitude faster, and 22 other optimizations
Juanito Fatas’ fast-ruby benchmarks are a great collection of insights into the performance tradeoffs of the different ways Ruby let’s you skin a cat (or shave a yak). Sometimes it’s possible to achieve amazing increases in speed without sacrificing any readability in your code thanks to the last 2 decades the core Ruby team has spent optimizing common patterns.
New release of middleman-presentation
I released a new version of middleman-presentation. See this article or browse the repository for more information.
Writing methods for both class and instance levels
A DRY way to implement your methods in both the class and instance levels.
Railyard
If you don’t like installing the Rails gem globally in order to generate a new app, you’ll like Railyard.
Fragment Caching with Rails 4.2 Screencast (19:30 min.)
A beginner’s guide to use fragment caching in a Ruby on Rails 4.2 application. Source code, transcript and video at
How to configure your Rails app to ship
You’re ready to launch your first production app, and it’s time to get it talking to some external services. You still have to get everything hooked up. So what’s the best way to configure your services in production, without making things more complicated on your dev machine?
What You Need to Know When Working With External APIs in Rails
Accessing APIs seems to be pretty straight forward, until you actually do it. There are a few gotchas that I’d like to talk about to make your experience in working with external APIs a little bit more pleasant. Check out the post.
Class Inheritance: Singletons + Eigenclasses
Ever wondered what that crazy “class « self” syntax means? Feel like having your mind blown with some metaprogramming magic? Check out this post on class inheritance, covering singleton methods and eigenclasses.
Even More Diet for Fat Models
I just published a post introducing a new approach for dealing with fat models. In the contrary to Ania Ślimak’s proposition I suggest to make model fully isolated from validations and keep the data representation as its only job. The approach is more OO and closer to Single Responsibility Principle. Read more here »
EuRuKo 2015
We’re happy to announce that EuRuKo 2015 will be back on October 17—18, 2015 in Salzburg, Austria!
[TUTORIAL] Authenticating Sinch from your Rails App with Devise
This tutorial will walk you through authenticating users to the Sinch JavaScript SDK with a Rails backend. You will use the devise gem to securely authenticate and store your users’ info. Once users are authenticated with devise, you will generate a token and pass it to the Sinch JavaScript SDK. Read more
Building an Unbeatable TicTacToe Game in Ruby - Part 2
Part 2 in a short series of posts describing how I designed and implemented an unbeatable TicTacToe game using Ruby.
Announcing Haikunator, a Heroku-like memorable random name generator
It’s a simple, no BS gem, built to do one thing and one thing only. And, that’s to generate memorable random Heroku-like names. That can be used for sub-domains, emails, user names and whatnot in your apps or anywhere else. I wrote it for a side project and extracted it as my first gem.
Emails in Rails apps: table of contents
I’d like your comments on what I came up with as the table of contents for “Sending and Receiving Emails in Rails Apps” an ebook that will serve as a reference for sending and receiving emails in Rails apps. Tell me what you think about the table of contents.
Create maintainable mongodb queries in Ruby with query object and mongoid criterias
I wrote about creating maintainable mongodb queries in Ruby with query object and mongoid criterias
Thanking the unsung heroes of the Ruby community
Please take a second to nominate the unsung heroes of the Ruby community for a Ruby Hero award who made your life and your work easier this past year. Nominations will close soon in preparation for RailsConf 2015 in Atlanta, Georgia where the awards will be handed out. Thank you.
Nuts & Bolts #6: Create Twitter Cards and LinkedIn Previews with Rails
You want a nice preview when your content is shared on Twitter, LinkedIn and other sites? That’s a good idea – it looks better and people are more attracted to click. Let’s build a simple solution.
Bringing Ruby fetch to the Javascript world
If you are a Rubyist you are probably comfortable using the fetch method on a day-to-day basis but when you are developing in Javascript this sweetness is not immediately available. This is why I wrote underscorejs-fetch =>