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.
Building a Rails server with Puppet
A short write up of my experience learning and configuring Puppet to build and manage servers to serve Rails applications.
Conferences and accessibility
2 small asks of anyone organising a conference: Conferences and accessibility: please try harder
Rails: store dates in UTC and display them in local time onto client side
A tiny note about how to work with UTC dates in Rails and how to process and display them in local time on the client using javascript.
Building a Public API in Rails 3
Just wrote up a detailed tutorial about building a public JSON/XML API on the Miso Engineering blog using Rails 3, OAuth, and the RABL gem for creating the response templates. Figured since we just built our fully fledged Public API with several available third-party applications available, that we should document some of our experiences. Let us know what you think and if there are any other related topics you’d like us to post about.
Spinning Up Cloud Compute Instances
Computation provides raw resources for innovation. Refining resources into services is serious business. Geemus explains how fog simplifies this process of utilizing resources, while smoothing out differences between providers so you can focus on creating the next revolutionary cloud service.
Cleanly add logging to your method calls with metaprogramming
If you’re running your Ruby scripts on a cron job, it’s important to log the output in case something goes wrong. Recording the output is as simple as appending “> somefile.txt” to your cron job. But can you avoid cluttering your code with lots of “puts” statements? Using a bit of metaprogramming, you can write a module that adds logging to whatever methods you specify. In this blog post, I’ll show you how.
Do you indent methods under private?
Which style do you follow? Feel free to fork and show an example if you do something different.
Chef Solo tutorial: Managing a single server with Chef
Chef’s documentation is a bit complex, so I wrote up a Chef tutorial to get you started.
I just launched a blog article about Rai...
I just launched a blog article about Rails basic Authentication system : part 2 for begginers.
Bucket scope pattern in rails
Short write up on the bucket named scope pattern we use in our rails app. Bucket Named Scope Pattern
Compute broadcast calendar dates with Ruby
Just released a smal broadcast_calendar gem to help you compute which civil dates line up with which broadcast calendar dates. Broadcast calendars are used to normalize radio and TV advertising schedules.
Why PHP is (so much) more better than Ruby?
Why PHP is (so much) more better than Ruby? (Slideshare)
quick_unit: A Ruby inspired C++ Unit testing framework
Working with Ruby makes it difficult for me to go back to the verbosity of C++. The amount of ceremony gets me down. At least with quick_unit, I can now write C++ unit tests that are clean and read nicely.
<pre>#include "quick_unit.hpp"
DECLARE_SUITE(My First Tests)
[more inside]
Adhearsion Gets a Console
Ben Klang just created an Adhearsion Console Screencast showing off the new interactive console built into Adhearsion v1.1.0. There are lots more interesting things cooking in the Adhearsion project, so keep an eye on it.
HTML5 Visibility API & Page Pre-Rendering
Instant page loads without any network latency delays? Why, yes you can with the new browser pre-rendering support and page visibility API’s. No Javascript required.
Brewdler - The dirty love child of homebrew and bundler
Brewdler is bundler for non-ruby dependencies from homebrew, list your dependencies in a Brewfile
and then just run brewdle install
and everything you need will be installed. Check it out on Github and Rubygems
Don't like 1.9's Symbol-in-Hash syntax? Love it? Use hash_syntax
Ruby 1.9 adds a new syntax for a Symbol as a literal hash key. I love it; some hate it. If you’re running Ruby 1.9, you can use my new hash_syntax gem to freely convert your code between the two syntaxes!
Prepping your Gemfile for Rubinius
Rubinius 2.0 is on its way and it’s shaping up to be a serious contender. Adding support for Rubinius to your gem should be pretty painless. Learn how!
Two-factor Authentication with Rails
I’ve just written a blog post about a two-factor authentication implementation for Rails. Feedback on the implementation is welcome.
Bundler and Rails 3.1 on Engine Yard AppCloud
Evan Machnic walks though using Bundler and Rails 3.1 on AppCloud. He covers some common errors with gem versions, how to solve, and other important considerations.
Calling Out to All Rails Devs & Designers Out There
If you are a Rails developer or a designer with some spare time and willing to help out on something cool, take a look at this post which explains why you should be a part of this project.