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.
Testing complex conditionals
Testing complex conditionals - how to simplify nested contexts, and reduce overall tests paths.
Reading Rails - Real World Examples of the Adapter Pattern
Ack, I know design patterns! This time around instead of reading one specific class, we will be looking at a few real world examples of the Adapter Pattern in Rails. [more inside]
Redis scripting with MRuby
MRuby is a lightweight Ruby. It was created by Matz with the purpose of having an embeddable version of the language. This article covers how to enable Redis scripting with Ruby.
Ruby Gotchas that will come back to haunt you
Sooner or later, beginners or experienced programmers, we all run into so-called Ruby Gotchas – those small language subtleties that hide from our sight for hours of hardcore debugging.
Simple Honeypot for Rails Forms
Yeah, you can use a gem or, God forbid, a captcha, but a simple honeypot is easier than you think.
Authorization in a Service Oriented Architecture (Part 2)
The second in a series of posts on authorization in a Rails app, scaling, and moving away from CanCan.
Get Production Ready
I just launched Get Production Ready a mailing list for ruby on rails developers and business owners releasing web applications in production, and opening them to the public. [more inside]
AllJoyn and ITTIA DB SQL Embedded Database Ideal for the Internet of Everything
ITTIA DB SQL supports AllJoyn communications, which enables applications for embedded systems and mobile platforms to distribute data, and provides them with robust concurrent storage and replication capabilities. With this technology, applications can store data in a reliable local database file that is automatically sent to nearby devices when they connect to the same wired or wireless network.
Devise example app for Rails 4.1
The Rails and Devise starter app is the first Rails 4.1 example from the RailsApps project, featuring the new config/secrets.yml, and a choice of Bootstrap or Foundation.
Knowledge, Reality and Reconciling the Difference (Part 1)
What a system knows about a given moment in time and what really was at that same moment can differ. Allowing past knowledge to be revised, and taking remedial action when it is, is often complex. Let’s explore implementing both of these requirements using Ruby as our example language. Read part 1 (introduction).
Open Source Rails App To Support Your Culture
We’ve just launched HELP - a simple to run Rails app for making it easy to reach out for help within small and medium teams. Hope you’ll find it useful!
How I test Rails validations?
A new article How I test Rails validations?.
Mongoid and Aggregation Framework: Get similar elements based on tags, ordered by total number of ma
Sometimes using unwind can be really useful. Here’s an example on how to get similar documents, based on number of equal tags that they have: Mongoid and Aggregation Framework: Get similar elements based on tags,
Going down the rabbit hole of Ruby's object conversions
Sometimes too much magic might be a problem for your Ruby codebase, check out how Ruby’s implicit and explicit object conversions work and how you can use or remove them from your codebase.
ActiveAdmin Tips: Custom MetaSearch Filter
Ever needed a custom filter for an ActiveAdmin resource? I did, and this is how I did it.
Abril Pro Ruby 2014 announces its lineup
The full lineup of Abril Pro Ruby 2014, the Tropical Ruby Conference, was announced in the last week, along with a new day full of workshops. Come and meet top notch Rubyists from many parts of the world while having a great time exploring the stunning Porto de Galinhas beach, a paradise in the northeast of Brazil. The conference will also have fun activities, including scuba diving and raft boat sailing. The details about talks, activities and workshops are available at the conference website.
Rails Quick Tips - ActiveRecord Ordering
Turns out that using strings in your ActiveRecord query could be hurting you. Find out more at 11… or now, whatever’s better for you. Ordering via ActiveRecord is nothing new. You may be asking yourself, what could you possibly be informing us of and more importantly why is it hurting me??? [more inside]
Inch Pages: Documentation badges for Ruby
I just launched Inch Pages, a way to show badges about inline-docs in READMEs. It’s like Code Climate for docs, except it is an open source project running on GitHub Pages. Early adopters include virtus and libnotify (right-most badge). [more inside]
Enlarge Your Capistrano
It this article i’ll tell you about few gems, which would make your deployment life a little bit easier. Well, it worked for me.
7 daily use cases of Ruby Array
When you need to find how to check if one array has all elements of another, you won’t find the answer in the doc because it’s not use case oriented. The documentation explains what each piece can do, not how you can use it (and clearly not which you should use for a given use case). I share 7 common use cases of Array I met very often in a blog post: 7 daily use cases of Ruby Array.
Introducing Lotus::Controller
Lotus development is going well. This month, I’m proud to announce Lotus::Controller. It’s a small, powerful and fast Rack framework. [more inside]
i18n-tasks v0.2.20
New release of i18n-tasks, a gem to manage translations in Ruby and Rails, now shows where the keys are used: [more inside]
RubyMotion - Creating and using custom application URLs in your RubyMotion iOS app
In this week’s episode, we take a look at creating custom URL schemes for your application, so that other applications can open it, and how to open another application from your app. We are going to work with two applications, one for asking for authentication, and one to act as an authenticator, similar to how “Connect with Facebook” used to work before it was integrated into iOS. [more inside]
Delayed Job Groups
We’ve just released Delayed Job Groups a Delayed Job plugin for managing groups of jobs and configuring callbacks for when the job group succeeds or fails.