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.
Ninefold CLI Gem 1.5.0 Released - Now with db backup support
Ninefold gem to version 1.5.0. This updated release includes couple of new commands related to managing your database backups all from the command line. Learn more here: https://ninefold.com/news/cli150/
Proposal for a better Hash#include?
In the interest of making life easier for other Ruby developers (and myself, of course) I’ve written down a proposal for a better Hash#include? that would allow us to easily compare hashes with other hash in order to see if they contain a sub-set of one another. [more inside]
Gourmet Service Objects
I just wrote a blog post about Gourmet Service Object. Service Objects contains the business logic of your Rails app while keeping your controllers and models really thin. I’ve been using this pattern™ for about 3 years now, it helps me deliver clean, expressive and reusable code that’s easy to test.
Toro: Concurrent, extensible job queueing with PostgreSQL
Toro (similar to Sidekiq or Resque) runs on PostgreSQL and focuses on concurrency, visibility, extensibility, and durability. It lets you easily set custom, queryable properties about each job when it runs, lets you quickly surface detailed data about any jobs or types of jobs, and much more.
Configuring RSpec
After writing an RSpec Tutorial, I released the RailsApps Testing gem which sets up the testing framework by tweaking a few configuration files for popular gems.
ITTIA DB SQL Advances In-Memory Data Management for Embedded Systems
ITTIA DB SQL provides high-performance capabilities to retrieve data from very large in-memory storage (100 million+ records.) This technology is used in applications to find specific details in a very large data set and perform complex queries in seconds. This is especially beneficial for critical decision-makers that need to access sensitive information in real time.
How I Used ActiveRecord#serialize with a Custom Data Type
I just wrote about using ActiveRecord#serialize with a custom data type. Read how here.
7 Screencasts on advanced Rake usage
I just published a blog post with my 7-episode series on advanced Rake features all in once place.
Passing LISPy Code As data in Ruby
LISP is essentially boiled down into this for the Rubyist: you have lists, which can contain not just data, but code (functions), and to do that, sometimes a function can become a piece of data, be added to a list, queried as code again when the time calls for it. All in a lazy manner. Let me try to illustrate this for you in Ruby. [more inside]
Expanded DB support for Ninefold's Rails app deployment: MySQL & MongoDB
We are happy to announce that you can now leverage our easy app deployment with your own MySQL and MongoDB servers! Learn more here: https://ninefold.com/news/byod/.
After RailsConf: Should I Still Learn TDD?
I’ve written a lot about TDD. So, it’s no surprise that when I published my last article at almost the exact minute David Heinemeier Hansson mentioned TDD during his RailsConf keynote, I got some questions: Do you agree with DHH’s opinions on TDD? Do you still recommend TDD? If not, what should I do instead?
Add to a Mailchimp list using Gibbon in Ruby
I love Mailchimp and has recently started loving Gibbon too. I use it to add people to my Mailchimp lists.
Analytics System with Redis Part 2
We show you how to be the data collection using redis INCR and SETS Video / Article
OpenSource: Finally add LIKE button to your Spree store
Hey! We’ve just released an open source RoR-based extension allowing you to add a LIKE/FAV button to your Spree store. Feel free to grab one!
Analytics System with Redis Part 1
I just launched and yada yada. [more inside]
FiniteMachine 0.5.0 release!
The finite_machine gem has received more updates including asynchronous callbacks. Please check it out!
Building contextual menu in rails
Contextual menu are in almost every project. Here, I discuss about a technique that I am using that leverages content_for and yield. If you’ve never heard of it before, come and have a read. It’s going to be worth it. [more inside]
eurucamp Early Bird tickets available today!
eurucamp Early Bird tickets will go on sale at 6pm CEST at tickets.eurucamp.org (that’s 12noon EDT, 9am PDT if you’re in the U.S.). See our blog article for prices and all the details.
Developing your MVP (Minimum Viable Product)
At Millwood Online we seem to have accidentally fallen into specialising in building MVPs for startups. I’ve blogged about some thoughts about developing the MVP.
We Are All Wrong About Software Design
All these discussions about software design are missing one detail: we are all wrong. [more inside]
Six Year Old Optional / Keyword Arguments bug
Wrote a blog on six years old ruby bug and how Rails got around the problem.
My RubyMotion Process, Custom Forms, and Date Fields - Screencast
For the past 5 episodes, we’ve been building the Tasker application, and as of episode 20, it’s basically ready to go except for a few more tweaks. So in this episode, we’re going to clean things up by utilising MIMInputToolbar, TPKeyboardAvoiding, input views and input accessory views. This episode also looks a little into my process for splitting out views into reusable chunks. Many of you use Formotion, but this episode is going to give you a look at how easy it is to build custom forms just by utilising some simple pods and gems. [more inside]
Mutation testing with Mutant
An easy to follow article demonstrating how to use Mutant. If this awesome tool isn’t part of your workflow yet then you’re missing out: Mutation Testing with Mutant
Paypal express checkout using ActiveMerchant and Instant Payment Notification
You can use IPN messages to automate back-office and administrative functions, such as fulfilling orders, tracking customers, and providing status and other transaction-related information or other kind of things, like emailing your customers upon purchase and offers. Here is a post about using IPN with ActiveMerchant (and Paypal express checkout).