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.
Meet the x-ray-amchine
Hey pips, i just launched the x-ray-machine which is a zero configuration logging/profiling tool for rails. [more inside]
Command Line Flags for Minitest in the Raw
You can run Minitest directly from the Ruby interpreter to target single test cases or specific tests. This post calls attention to a few of the framework’s own command line options that aren’t well publicized but which can be useful for these scenarios.
‘Learn Ruby on Rails’ on Amazon for 99 cents
I’ve just released my book Learn Ruby on Rails on Amazon (it was only available with a RailsApps subscription before today). Even if you already know Rails, you might want this book. You can get Learn Ruby on Rails for only 99 cents for the next seven days (it’s a launch promotion). And, please… write some 5-star Amazon reviews?
Forward v2: Static Sites, Logging, Multiple Accounts, and more
We recently launched an all new version of the Forward gem. Now you can forward a static sites, view requests as they come over the tunnel, use multiple accounts, and auto copy/open your tunnel URL. [more inside]
Video Tutorial: Ruby on Rails Development with Git and Github
Learn how to setup your Ruby on Rails development environment to use git and github in this video tutorial.
DRYing up Rails Views with View Carriers and Services
Read about DRYing up Rails Views with View Carriers, why use carriers, when and when not to use rails helpers, overcoming double dot and simplifying complex views.
Testing and Environment Variables
Learn how to test code using data in environment variables with Climate Control.
Renewable: Frozen by default objects
Last week I wrote a gem to begin playing with an idea for melding Functional ideas with OOP. The result is the Renewable gem. The code is on Github and I’d love feedback and use cases to target. Right now this is a solution in need of a problem; so, please help me vet it.
Rails Gemfile Teardown - 2014
I looked at one of my recent Rails Gemfiles for 2014. Here’s my Rails Gemfile Teardown. Hope you enjoy!
TheViking 1.0 released
TheViking 1.0 - Akismet anti-spam service for Ruby and Rails. [more inside]
New Rails gem "dynaspan" for dynamically transforming text to edit
There are half a dozen JavaScript snippets/projects out there that let you click on some text and an editor appears in place. Well now we have one built for Rails with minimal setup and minimal clutter. Built with Bootstrap in mind it provides elegance with simplicity. If it’s text connected to the database, it can be dynamically updated. [more inside]
a href="https://ninefold.com/blog/2014/11/25/threads/">Threads in Ruby (part one)/a>
Why do I need to know about threads? My main purpose to discuss threads is not for the audience to start writing multithreaded code but to have a good idea of what is happening to their application when they are using multithreaded gems in their codebase. [more inside]
Rails middlware to tweak Paperclip S3 asset urls while developing.
I wanted a way to see production S3 assets in development when using a production database export without hacking Paperclip. My solution.
Free Ruby on Rails (and AppSec) Screencasts
Recently, nVisium made SecCasts free to subscribe. It’s got a ton of application security tips in screencast format, and most recently we’ve been on a Rails kick, releasing Rails-specific screencasts. Check them out for some easy fixes to security issues we regularly see in Rails apps.
Reaching Developers With Display Ads
When you want to reach a fragmented customer base, marketing becomes a challenge. I’ve outlined an approach you can use to reach your target customers with Google display ads for any product or service, using developers as an example.
TheActualLocales 0.0.1 released
TheActualLocales is a way to actualize yours i18n locale files and remove legacy keys into multilingual projects
We just added a short article about rail...
We just added a short article about rails timezones . It will explain how rails handles that.
Block Ad and Scam websites at domain level
I’ve just created gem that makes easy to block unwanted ads at DNS level - think of lightweight replacement of AdBlock/Ghostery, with addition of blocking scam websites etc. Check it out - it’s called hosts_updater. Feel free to report any bug or suggest a feature.
RubyConf 2014 Presentations going up on Confreaks
If you missed RubyConf 2014, or just couldn’t take it all in while in San Diego, don’t worry. Confreaks has RubyConf presentations coming online right now.
Introducing Spyme - Browser Geolocation API + Rails without effort
I’ve just created a gem that makes easy to use the Browser Geolocation API to track the current visit location with Rails. Check out Spyme Also feel free to report any bug or suggest a feature.
Rails Fundamentals: Models and the to_s Method
This short post demonstrates the utility of overriding your Rails models’ to_s method if you find yourself repeatedly outputting a specific model attribute (or outputting a compound attribute).
The pros and cons of 4 deployment process techniques
This blog post talks about 4 different ways of doing software deployment. The text describes the pros, the cons and the quirks of each one option. [more inside]
Better globals with a tiny ActiveSupport module
In Rails, you might set data once during a request, but use it in every layer of your app. Which user is making the request? What permissions do they have? Using a Ruby global variable or class variable for this would be bad – multiple threads could overwrite it, and you’d end up with a huge mess. Instead, you need something that’s global, but for just that request.
Forwarding Messages With Tell, Don't Ask
I wrote about how sending a message as a command leads to flexibility in Forwarding Messages With Tell, Don’t Ask.