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.
Simple & Helpful Field Helpers for Rails
Prefilled/checked fields with values from params (e.g. params_check_box_tag 'search[user_ids][]', 1).. Check boxes/radio buttons with matching(clickable) labels (e.g. radio_button_with_label 'search[foo]', 1, true, 'Foo?') and more @ helpful_fields
Corporate Sponsorship of Open Source Software
Prompted by Matz joining Heroku, the Ruby Rogues discuss corporate sponsorship of open source software. Our panel includes Charles Max Wood, Dr. Nic Williams, James Edward Gray, Josh Susser, and Peter Cooper.
Simple and custom authentication for app that uses Devise but without opening any session
I just wrote a #notetomyself about doing stupid simple authentication just using email and password in a Rails3 app that uses Devise as authentication engine.
How invokedynamic just might save Dynamic Languages on the JVM
If you work with a dynamic language hosted on the JVM you might not have heard of JSR223 and JSR292, but you owe these documents a debt of gratitude. Ola Bini explains how these JSRs specify extensions to the JVM that make it a happier place for dynamic languages.
Before, after, and around filters in controllers
Are you a new developer trying to learn Ruby on Rails? The latest Rails Coach podcast discusses before, after, and around filters in controllers.
Command Line Feedback from RVM and Git
If you’re like me, most of your day is working in Git and RVM. I am frequently typing git branch to remember what branch I’m on, and rvm gemdir to remember what ruby version and gemset I’m using. With all those wasted cycles, there has to be a better way. And there is.
Protocol Buffers, Avro, Thrift & MessagePack
Which is the best serialization format? Protocol Buffers from Google, Facebook’s Thrift, MessagePack, or maybe Avro? A look at the use cases and the historical context in which each was developed is instrumental in helping us answer this question.
The When, How, and Why of Metaprogramming in Ruby
In the latest Ruby Rogues podcast, we discuss the when, how, and why of metaprogramming in Ruby. Our expert panel includes Avdi Grimm, Josh Susser, David Brady, James Edward Gray, Charles Max Wood, and Gregory Brown.
Making ActiveRecord Models Thin
Here are my thoughts about separating business logic from the persistence: Making ActiveRecord Models Thin. Let’s have a discussion!
Backends in Rails 3.1
I’ve written a blog post on creating your own backend using Rails 3.1. It shows of some great gems for making this a relatively simple task and showing of some of the new features of Rails 3.1 at the same time. It’s complete with source code on github and a running example on Heroku (login with frodo:thering)
Uninitialized variables in Ruby
Post about Uninitialized variables in Ruby. And what if you will have one.
Use Redcarpet as a Markdown Filter for Haml in Rails
Haml by default does not use Redcarpet Ruby Gem if available as the dependecy to parse Markdown text format. But it’s easy to overwrite the Haml internal to use Redcarpet. Read more.
Ruby Programming 26th Batch: Registrations now open
Learn Ruby Programming. Registrations are now open for RubyLearning’s popular Ruby programming course. This is an intensive, online course for beginners that helps you get started with Ruby programming.
Convert Ruby object to array
Have you ever been in a situation where you needed a method that does the following: [more inside]
Podcast: Arthur Chiu & Nathan Esquenazi on Padrino, Sinatra, and Rails
Dr Nic Williams talks with Arthur and Nathan about Padrino, Sinatra, and Rails.
Josh Berkus from the PostgreSQL core team
I interviewed Josh Berkus from the PostgreSQL core team. We talked about the tradeoffs of using MySQL vs Postgres, the history of the databases, and relational database concepts.
Appsent - One more config management solution
This gem provides easy way to handle loading different config files, validations for necessary config values, in a such way: your application will not start until you fill all needed settings, and when you done you will have access to every your in a convenient way.. More at appsent github, appsent relishapp and appsent rubygems.
Shaven - templating without mustaches!
Some time ago i’ve pushed working idea of totally logic-less templating system called shaven. It’s mix of tuned up presenter layer similar to defunkt’s mustache and neat, designers friendly, logic less html templates. Would be great to gather some feedback from you guys and push it to production!
Implementing a video player with Ruby
Here’s a 7 minutes video podcast on implementing a video player (GNU/Linux) using the Ruby extensions hornetseye-ffmpeg, hornetseye-alsa, and hornetseye-xorg. More …
Miso Adventures in Scaling: Setup and Tuning of PostgreSQL
Several months ago, Miso migrated from MySQL to PostgreSQL after considering multiple persistence alternatives. This new post is the first in a series that explains our experiences with PostgreSQL and how to get it running with your applications. Covers why we chose it, how to tune the database and which parameters are most important.
Basic Schema Concepts for Cassandra and the Cassandra Ruby Gem
I released a video that explains the basic schema concepts for cassandra and the cassandra ruby gem. If you’re considering NoSQL options, check this one out!
How to test Rails 3 SSL enforcement with Capybara and Devise
A lot of Rails blog posts recommend that you only turn SSL on in production and don’t try to use it in the test or development environments. I explain why this is a big mistake and and present all the code I used to get SSL working with Rails 3, Capybara, and Devise.
Cron tasks for your Rails application with Resque
We had an interesting case with cron tasks implemented with Rake killing performance of our application server. This post discusses the problem in detail and provides a simple and effective solution for it.