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.
All About Methods
A more advanced, and yet accessible look at methods in Ruby and the nuance that comes into play when defining methods on instances, singleton classes, classes, and modules. The secret: think of each as an instance method in the appropriate context. Read more…
Exporting Records to CSV format
In this video, I explain how to generate a CSV file containing attributes and serve it up in the browser using the send_data method in the controller. Watch the screencast on Exporting records to CSV in Rails
SOLID Review: Liskov Substitution Principle
Barbara Liskov introduced her substitution principle back in 1987 during her keynote titled Data Abstraction and Heirarchy. Today, it is one of the five SOLID principles in object-oriented programming. “Instances of any type should be replaceable by instances of its subtypes without creating incorrect behaviors.” How can we ensure that our classes abide by the Liskov Substitution Principle? [more inside]
New Finance gem
Mortgage and Loan calculations released in a gem https://github.com/kolosek/finance_math Number of others are pretty much outdated. If some explaination is needed regarding algorythm you can send message on http://kolosek.com
Setup your Rails app on Nitrous.io
Seeing how running Rails on Windows is not everybody’s cup of tea, here’s a quick guide on how to run a Ruby on Rails app on Nitrous.io, a cloud development box that you can access from wherever you have a browser.
[TUTORIALS] Auth Ruby Gem for the Javascript SDK using Sinch
You can use the gem sinch_auth to generate a user ticket that authenticates users through the Sinch Javascript SDK. Learn more in this tutorial.
DHH on Rails as an API Server in Rails 5 (Audio)
During our recent interview with DHH, he shared a change of opinion regarding Rails as an API server for client-side MVC frameworks and shared a bit about what’s to come in Rails 5.
A new release for `geo_pattern` is available
A new release of geo_pattern was shipped by @jasonlong. Look here for more detailed description.
Video Tutorial: PostgreSQL Backup & Restore
Use PostgreSQL as the database for your Ruby / Rails app? Check out this video tutorial on how to simply backup and restore it.
Five Things I Knew About Programming Before I Did a Startup
After reading the Sorrows of a New Developer post, I realized that my attitude toward programming has changed over my career, and I decided to write up a piece of my own, on the ways that my coding practice has evolved.
Phusion Passenger 5.0.1 released, officially ready for production
The 5.x series of Passenger – aka “Raptor” – introduces many major improvements like much better performance, a new HTTP JSON API for better insights into server and application behavior, better logging and WebSocket support, and more. Read the release announcement to learn more.
New Datafiles for Top Football Leagues (en,de,es,fr,it) - e.g. use $ sportdb new top
Hello, I’ve added some more datafiles that let you build your own football.db - using free open public domain datasets - with a single command e.g. $ sportdb new fr2014-15. The new datafiles include: de.rb and de2014-15.rb; es.rb and es2014-15.rb; it.rb and it2014-15.rb; fr.rb and fr2014-15.rb; at.rb and at2014-15.rb; top.rb and top2014-15.rb (includes top leagues e.g. en,de,es,fr,it). Cheers.
CanCan Overview
CanCan was originally introduced by Ryan Bates in 2009 and was taken over by Bryan Rite. It’s been a while since I’ve seen a post about it so I decided to do a write up on my opinion of it. See the details at Thoughts on CanCan
You don't need to wait for your backend: Decisions and Consequences
Choosing to not wait for a backend while processing user actions on frontend has interesting consequences. We’ve made an analysis of pros and cons of two most common approaches. Interested? Take a look here!
How to Write Command-Line Applications in Ruby with GLI
I just published a post about writing command-line applications in Ruby with GLI. It allows to increase effectivity of your work as a software developer. Take a look here »
Ruby: The Case for Case
A more in-depth look at using case switching in Ruby.
MagicCloud - Wordle-like word cloud
New gem, named magic_cloud, recently released. It allows to draw dense colourful word clouds from weighted words, similar to Wordle. It’s pretty stable, though not that fast.
Infinity in Ruby
Have you ever run into an infinite value in Ruby? This post takes a look at how Ruby handles infinity. […continue reading…]
A faster way to cache complicated data models
When your data model gets complicated, and your APIs hit that sad 1 second response time, there’s usually an easy fix: :includes. But if you want to cache your responses, you can only fetch one object at a time, and you can’t get all the benefits of :includes. So how do you get a fast response for your cached objects, and still load the objects that aren’t in the cache, quickly?
An excellent Angular Rails tutorial
In my office we are using AngularJs and this seems to be a very good tutorial for Angular Rails
Hoboken: A Sinatra Project Generator
Generate Sinatra projects quickly, yet still maintain the advantage of flexibility that using Sinatra provides. Read more.
Bundle Up & Let Your Objects Do the Freezing: Frozen Hashes
Have you ever tried to modify a frozen object? Or have you always what a frozen object is, exactly? This post explores how frozen objects in Ruby can be dangerous, and why they’re useful.