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.
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.
Owning Basic Rails in 7 days
A few days ago I wrote a book Rails - 101, it’ about how to owning basic Rails in 7 days. Everyone knows the learning curve of Rails is alyways too high for beginners. You can’t find too much good developers in the market. In my past career, I had trained 3 profession Rails teams, over 10+ Rails developers, lead them from novice to professional. The secret is I write a tutorial to eliminate the learning curve that time. This tutorial covers many basic but important intrusions and exercises, to help them cross the first stage. So they can easily own Rails in 7 days, not months. Now, this tutorial becomes book Rails - 101. Check it out ! More story about this book.
Running the Pow Web Server Over SSL
Step by step instructions for running your site locally over SSL with Pow.
Mocked Carrierwave with fog
Mike Gerhard writes about using fog mocking to improve the test coverage of your Carrierwave integration.
let and nested describe/context blocks
Over on the Highgroove blog, I posted a small tip about using let and nested describe/context blocks with RSpec to DRY up test code.
Build native apps from javascript web apps using SproutCore and Strobe
Come watch as Yehuda Katz talks about using web apps (some rails) to build native apps using SproutCore and strobe.
The Billy Baldwin of Conditional Assignment
You may not know about the &&= operator, and you may never need to. But for the curious, learn how to set variables that are already set in our latest blog post.
Benchmarking in Ruby... an investigation. Any wish, idea, comment, critics?
I would like to collect comments and wishes about benchmarking in ruby. Any existing tool, blog to read, idea or use case?
Proper catching controller-level exceptions in Rails
A tiny note: Proper catching controller-level exceptions in Rails
Rails Misapprehensions: Query Parameters are RESTful
Long URLs and query parameters are nothing wrong in REST, however you’re free to expose additional resources with dedicated URLs in your Rails project (or anywhere else). Read how resources, URLs and query parameters fit together and feel free to comment!
Introducing MongoHydrator
MongoHydrator is a new gem that makes the expansion of embedded MongoDB IDs into full subdocuments easy and efficient.