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.
Resourceful custom user profile themes in Rails
I wrote a blog post on building a solution to allow users to customize the style of their profile, the Rails way.
FIXED: Ring.pop: A beginner takes on 1,000 hours of Ruby and Rails
Hey Everyone, Read more
Justin Searls builds a software consultancy based on trust and learning
Justin Searls runs a software consultancy called Test Double out of Columbus, Ohio. Test Double has a unique model built on trust and learning. Justin talks to us about his consultancy, the layers of understanding that go into a complex software project, and things you should do to keep learning and advance your career as a software developer.
Rubycast #6 - Removing N+ SQL Queries for Speed
In part four of this multi-part series on building a fully functional calendar in Ruby, we will make the calendar more responsive and efficient by removing an N+ active record based SQL query in favor of a more optimized single query. Read more
Code Smells And Ruby Shorthand: Unpacking Ampersand + to_proc
One of the worst code smells – and a sign that it’s time to refactor – is long methods. Thankfully, Ruby has some pretty cool shorthands that’ll have you replacing lines in no time! This blog post explores the “ampersand and object” (&:) syntax and unpacks how it uses to_proc to make your iterations even simpler!
Megegen - use Migration Generator without include Rails in project
Mege.Gen is a ActiveRecord timestamped migrations generator CLI tool. Let’s find out Read more
WebInspector
Ruby gem to scrape a web page. Read more
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!
Why you should be using Open3 to run shell commands from Ruby
http://blog.honeybadger.io/capturing-stdout-stderr-from-shell-commands-via-ruby/
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. Read more
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.