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.
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
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.
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:
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.
Object Oriented Design Basics
Localized Change vs Additive Change
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.
Coupling Basics
Concrete Class vs Abstract Messages
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.
Ruby Waterfall
A way to chain ruby services and commands.
Practical Object Oriented Design in Ruby Book Review
Read why I rate this book as 3 out of 5 stars : Practical Object Oriented Design in Ruby Book Review
Version 0.1.2 of Dynaspan has been released!
Dynaspan is an in place text editing solution for Rails with AJAX substituting text to an input field. Unlike other in place text editing solutions this is designed to support Rails forms with nested attributes. This gem does all the heavy lifting allowing you to write a simple method call to do all the work for you. It includes extra features such as JavaScript hooks, and complete options customization. A sample demonstration is available on the JS Fiddle link on the github repo.
Implementing Singleton pattern in Ruby
Presenting couple of ways to implement this pattern in Ruby. Check it out here.
Opalist Newsletter - Issue #4
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 fourth issue, we cover a bunch of news in the world of Opal gems as well as a great screencast showing how to build highly-interactive apps via Volt.