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.
Two modules, one method - an interesting interview question
What happens when you have the same method in two modules and include both of them to a class? Let’s find out.
Authentication from Scratch
Password Reset Feature. Why? Because we don’t need any stinkin gem. We have more control over the upgrade process, flexibility and code coverage.
UX Kata: Elevators
What kinds of design challenges do websites and elevators have in common? Try out this simple UX kata to find out!
How To Setup Nginx On Server For Rails Application?
Ruby on Rails is a popular rapid development web framework. It allows web designers and developers to quickly implement dynamic and fully featured Ruby on Rails application. This article describes procedures for installing Ruby on Rails Text in conjunction with the nginx setup and Passenger module.
TUNS - Get notification when someone unfollow you on twitter
A simple open source web service written in Rails that allow you to know when someone unfollow you on twitter. [more inside]
Why coding a monkey sort or bogosort in ruby isn't so stupid after all
Off all the sort routines in all the repositories, the monkey sort is probably the stupidest. But that doesn’t mean you can’t learn something putting the code together. Explore a monkey sort implementation in ruby - with code this stupid, you would be stupid not to!.
Rails API Authentication with Warden (without Devise)
A post on how to implement a simple authentication using only Warden. Read it here!
Ruby on Rails slack chat
First Ruby on Rails slack chat, focused on rails and all stacks which are related to rails, if you want to contribute register here http://www.rubyonrails.link
Make Your Own Rack Server
An introductory how-to on standing up your own web server from scratch that can speak to Rack-compliant applications. http://www.blrice.net/blog/2015/05/31/make-your-own-rack-server
tty-pager release
If you need to page terminal output in cross platform way then tty-pager may be exactly what you need. This is a new component for tty library. Please take it for a spin and let me know how it fairs!
You can use CoffeeScript classes with React - pros and cons
One of the best changes in React v0.13 is an ability to use plain CoffeeScript classes to build component classes. I discuss pros and cons of this solution in a blogpost.
Service objects in Rails
Once you structure your business logic in nice service objects, you are one step more towards clean code. But other questions may appear, the following slides present my point of view and the solutions provided by the community: https://slides.com/apneadiving/service-objects-waterfall-rails/live
Don't use before_action to load data in Rails controllers
I wrote a quick blog post explaining how before_action filters may result in hard-to-maintain controllers and how to fix this.
tty-which released!
tty-which is a cross-platform implementation of unix which utility for searching executable files in the user path.
Ring.pop: A beginner documents his 1,000 hour journey to learn Ruby on Rails.
How to debug stuck Ruby processes
Some thoughts and useful script from New Relic’s RPM on how to debug stuck Ruby processes
Ruby’s Exception vs StandardError: What’s the difference?
http://blog.honeybadger.io/ruby-exception-vs-standarderror-whats-the-difference
Decouple logic from Rails controllers with Pseudo Resources
I wrote a blog post about decoupling non-resourceful controllers from their complicated logic by introducing a pseudo resource.
Extracting configuration in Ruby application
Read the post here The gem is called app_configuration. I created this gem because in several Rails applications I had the problem of configuring third party services and I could not set sensitive information in the environment files. If you are doing this you shouldn’t. The major issue with setting sensitive information in the environment files is that (unless you don’t use any kind of VCS) you are versioning it.