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.
Interview with Geoffrey Grosenbach
I interviewed Geoffrey Grosenbach from peepcode.com and the Ruby on Rails podcast about programming and entrepreneurship. Go check it out!
options_for_select_tag Rails Helper
I wrote a Rails helper method called options_for_select_tag to extend the options you can use with the ‘select_tag’ helper method. I hope you find it useful!
Accessing Facebook’s Open Graph from within Ruby on Rails
Need help accessing facebook from within ruby on rails? [more inside]
Design Patterns in Ruby: Adapter
I just wrote the second post about Design Patterns: Design Patterns in Ruby: Adapter.
How to start hacking a ruby project
I wanted to play around with the rspec-rails code a little bit, but I didn’t have a setup for it. Since it was a non-trivial setup (for me at least), I thought I would share how I did it.
London Ruby User Group Podcast - Episode 3
The London Ruby User Group (LRUG) has just released episode 3 of their podcast. [more inside]
Five tips for adding foreign keys to existing apps
You’re convinced foreign keys are a good idea, but how should you retroactively add them to your production Rails application? Here are some tips to help you out.
Watermarking images with Rails 3 and Paperclip
Recently I needed to watermark images using Paperclip and Rails 3. Here’s how I achieved it.
RubyConf Latin America, in Brazil
You may have heard about Rails Summit, the largest Rails conference in Latin America. It has evolved into RubyConf Latin America. Registrations will open in August, but the event is confirmed for October 26 and 27. Book flight reservations already :-) And we also opened a Call for Proposals, so if you want to speak please send your proposals. This is a great opportunity for you to get to know Brazil. Hope to see you all here.
Slide Show (S9) Now Includes New Template Packs: HTML5 Rocks, Slidy, S5 Themes
Slide Show (S9) lets you author your slides in Markdown or Textile with built-in or your very own Ruby helpers and filters. The latest update now also sports many more template packs. Create Google HTML5 Rocks-Style slides or classic S5-Style or Slidy-Style slides in easy-to-read and easy-to-write plain text.
Example of JQuery using Sinatra
The JQuery Ajax Tutorial includes an example using Php for server side processing. This post describes how I did the same thing using sinatra (and also a bit about how to chart the data using R). Code is available from Github.
Editable Grid for RoR with dhtmlxGrid
Here is a tutorial on how to build an editable datagrid which loads data from server and saves it back to the database using Ruby on Rails.
New Array and Enumerable methods in Ruby 1.9.2
1.9.2 comes with some new Array and Enumerable methods: keep_if, chunk, slice_before, flat_map… This is a blog post about what they are and what they do.
acts_as_state_machine is not concurrent
It doesn’t work correctly in a typical production deployment. See how AASM breaks and how to fix it. 4 minute screen cast + blog post.
Few thoughts on gem dependency problems with possible solutions
This is a writeup on gem dependency problems and how we can possibly fix that. Feel free to leave your opinions in post comments - maybe we’ll all come up with something cool.
Manage Gems Separately in Different Projects Use Bundler
How to manager gems in different projects, bunlder give us another solution. see here
Rails 3 example using Authlogic
I created an example application demonstrating Authlogic running on Rails 3. It is complete with RSpec tests and email validation.
Using Plupload + CarrierWave in Rails 3
Just a quick run down of how easy it is to use Plupload in a Rails 3 project for file uploads.
3 Reasons You Shouldn't Use STI
A blog post about why STI is rarely the right modelling choice.
Announcing God 0.11.0 - All new notifications system
Today’s release of God 0.11.0 includes a totally rewritten notifications system. And remember, GOD NO LONGER LEAKS MEMORY, so get started with powerful, customizable process monitoring today!
zozo 1.0.0 released
zozo reduces the memory footprint of your ruby applications by not loading rubygems/bundler at runtime.
Oink + Request Log Analyzer = Rails Monitoring in one report
Request Log Analyzer, which analyzes a Rails log file and reports throughput and request times, adds Oink file format processing for memory usage metrics. Also includes information on memory leak alerts using Scout.
Interesting way to hire Rails devs
Hiring talented developers is never an easy task. Integrum is taking a non traditional approach which seems quite interesting. Look at their blog post explaining how they pick candidates. The way I see it, such a process means two things. First, the hiring company really cares about its employees and secondly, potential candidates can see right away what kind of technology is used on a daily basis. Even if you are not looking for a new job, you might be interested in the process and why not even trying to solve the mini test?