Posts Tagged ‘rails’

Posted on 9th June, 2009 | No Comment

A simple and lightweight ’search’ method for ActiveRecord::Base models that will search text/string-based columns for a specified critieria.

http://github.com/jabberwock/Searcher/tree/master

Usage:

MyModel.search('some text')

You may also add normal ActiveRecord.find options, e.g.:
MyModel.search('some text', :limit => 20)

You may specify which columns get searched in your ActiveRecord model
by specifying +seacher_column+ or +seacher_columns+, e.g.:
class Foo < ActiveRecord::Base
    searcher_column :col1, :col2
end

Posted on 1st June, 2009 | No Comment

SmartForm creates nicely laid out form fields for an ActiveRecord object, including it’s content columns and association reflections. The form fields are encapsulated in an HTML definition list.

http://github.com/jabberwock/smart_form/tree/master

Posted on 30th May, 2009 | No Comment

After losing my dedicated server (including all of my rails plugins) due to reasons beyond explanation, I was very excited  to discover that HowFlow has a backup copy of my CipherMail Ruby on Rails plugin. I have added it to my GitHub account!

For those of you not already familiar with Ciphermail, here is the synopsis:

CipherMail provides a safe alternative to the mail_to helper by hiding mailto links from e-mail harvesting bots. The generated output is completely obfuscated by a 1024 bit random key. They keyword is stored on the server, so it is never revealed to the client. Processing is performed on the server-side via an AJAX request and the decrypted redirect is returned to the client, opening a mail composer window… just like normala mailto link.

Memoirs of an Irish Programmer