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.
Using online user detection to orchestrate in-app and email notifications
Often I get twice the same notification: one in the app, and another by email. This article shows a simple way to avoid notification overload, using Pusher and SendGrid:
Streaming data with ActionController::Live
Example of using ActionController::Live for real-time data streaming. -
Empty? vs blank? vs any? – why you should not use any? to test if there’s anything in
Any? is not always the best solution. Especially when you use it wrong and work with big a arrays. You can check why here: Empty? vs blank? vs any? – why you should not use any? to test if there’s anything in
Pair with Dan Mayer
Share experiences and results from our #pairwithme session
Free coupons to TDD in Ruby course
Enjoy free coupons to TDD in Ruby Beginner Course. More than 100 FB likes and 5 star reviews from genuine students.
Practicing Ruby Contributors Fund
Please back this Kickstarter to help me bring ten new contributed works to Practicing Ruby. 100% of the funds will go to the contributors, and each contributor will also be given five days of my time to help with editing, research, etc. [more inside]
New "Ruby on Rails 4.2 for Autodidacts" Book
The Kindle version of my new “Ruby on Rails 4.2 for Autodidacts” book is online. It covers Ruby 2.2 and Rails 4.2.
Apply the Basics of Ruby Object Model
Developing Chico : A Sinatra Clone
Query mongdb using hash or Json
We just released mongoid_hash_query which is the little brother of ActiveHashRelation gem. [more inside]
High level Rails testing using Capybara and Minitest
Here’s a short blog post about how to get started with writing high level acceptance tests in Rails using Capybara and Minitest.
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, [more inside]
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. [more inside]
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 [more inside]
WebInspector
Ruby gem to scrape a web page. [more inside]
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. [more inside]