Articles

Rails 3 security presentation [LINK]

The Hacking Ruby on Rails prezo by Heiko Webers looks like it has some interesting slides.

Books, Bits, or both?

"Heh, I've been working thru the PDF for a while. Now that the book is here, I'm digging a little deeper." —Jim WeirichThis is a pattern I've seen in myself too. I love ebooks because I can carry a bunch of them around on my laptop, search them easily, and grab the occasional snippet from them.On the other hand, I find myself not reading them as seriously as 'real' books. There's something

Model-Based Subdomain Routes for Rails

In my first article, I described a new rubygem for adding subdomain routing to Rails applications. In this second part, I’ll describe the use of the gem to key subdomain-based routes to your models.

Interesting Ruby Tidbits That Don’t Need Separate Posts #25

blueprint.pngA handful of random Ruby links, articles, and resources to end off the week..

Character count a textarea in Ruby on Rails

I used to do this with an 'onkeyup' attribute, but that's not available to the 'observe_field' method. But, by setting the frequency to a tenth of a second, it's much better. The character count updates even on keydown and hold.In the view you just do this Message ( characters)
<%= text_area_tag :description %> <%= character_count('description','char_count'

How to create a dynamic javascript widget


Following code has been tested with Rails 2.3.2

Objective

The goal is to create a javascript dynamic widget. This widget will display list of events happening in Mumbai, India. The data will be pulled from the API provided by EventsInIndia.com . I picked up EventsInIndia.com because no API_KEY is neeed to use the API.

Full text search on Rails using the acts_as_solr plugin

Now let’s learn with a simple example how you can use this plugin to add full text search functionality to your models. But before that, let’s check out acts_as_solr and Solr features:

Enter the Muppet Laboratories

I have decided I will start an experiement. I haven’t done this before and I have no idea whether it will work as indended but I am sure we can pull this off together. Here’s the deal: I will try to let you participate in my thought process which hopefully will turn up some useful if not best practices. I don’t claim to be Don Knuth but hopefully you’ll find it interesting and worthwhile nevertheless. The tricky part will be to actually catch all the reasonings and record them in a format suitable for blogging.

Is it JRuby?

Carl Mercier has forked our “Is it Ruby 1.9” web app to make “Is it JRuby“, to track which gems work with JRuby. This is how free software is supposed to work!

For those of you not in the know, JRuby is a Java implementation of Ruby, allowing you to run Ruby code on a Java Runtime Environment.  If you’re using or playing with JRuby, head over to isitjruby.com with your feedback.

Charlie Nutter on JRuby

It's taking a while to go through all the excellent talk proposals and try to fit in as many as possible into the schedule. In the mean time, I had a quick chat with Charlie Nutter, who will be speaking at the conference. Charlie is co-lead on the JRuby project.

Double Shot #565 | Rails Fire

Double Shot #565

I’m rather enjoying doing more PM lately. Probably a sign of creeping megalomania.

Images: