Railsify!

ActiveRecord Plugins

  • There are 45 plugins in this category.

Acts as Ferret by Jens Kraemer in ActiveRecord Gem Available!

Acts_as_ferret is a plugin for Ruby on Rails which makes it simple to implement full text search for Rails. It builds on Ferret which is a ruby port of Apache Lucene. It is a technology suitable for nearly any application that requires full-text search. For more information about Ferret, visit its website, search the mailing list at ruby-forum.com or (very recommended) buy the book.

acts as history by Uwe Kubosch (donv) in ActiveRecord

Adds functionality to keep historic versions of a model in the database.

Acts As Readonlyable by Val Aleksenko (muzzy) in ActiveRecord Gem Available!

ActsAsReadonlyable adds support of multiple read-only slave databases to ActiveRecord models. When a model is marked with acts_as_readonlyable, some of AR finders are overridden to run against a slave DB. The supported finders are find, find_by_sql, count_by_sql, find_[all_]by_*, and reload. Finders can be forced to fall back to a default DB by passing the :readonly flag set to false.

Acts As Restorable by Mark Chadwick (markchadwick) in ActiveRecord

Allows for records to be serialized and removed from the database on deletion. Deleted records can then be imported back into the database. Consider it a slightly cleaner version of acts_as_paranoid

Acts As Secure by Val Aleksenko (muzzy) in Security & Protection and ActiveRecord Gem Available!

ActsAsSecure adds an ability to store ActiveRecord model's fields encrypted in a DB. When a model is marked with acts_as_secure, the :binary type fields are recognized as needed to be stored encrypted. The plugin does before_save/after_save/after_find encryption/decryption thus making it transparent for a code using secured models. The plugin supports a master key approach as well as individual records encryption keys. It does not contain any crypto provider but allows to plug in any external one as long as it supports encrypt/decrypt methods.

Acts as Textiled by err in HTML Helpers and ActiveRecord

This simple plugin allows you to forget about constantly rendering Textile in your application. Instead, you can rest easy knowing the Textile fields you want to display as HTML will always be displayed as HTML (unless you tell your code otherwise).

acts_as_replica by Fabio Akita (AkitaOnRails) in ActiveRecord

Plugin based on the the old Acts As Syncable from Alex MacCaw but completely rearchitectured to support for full database replication between two different sites. Useful for offline client (using Slingshot or Ruby2Tar solutions) and online server situations.

acts_as_slugable by Alex Dunae (Alex) in Utilities and ActiveRecord

Generates a URL slug based on a specific fields (e.g. title). A url slug is a string derived from a specific field which can the be used in a URL. For instance, a page with the title <tt>My page</tt> would have a URL slug of <tt>my-page</tt>. The slug is generated on save and create actions. If the field has an existing URL slug (like when editing an existing record) the URL slug is preserved. URL slugs are unique within the specified scope (or all records if no scope is defined). If the slug already exists within the scope, <tt>-n</tt> is added (e.g. <tt>my-page-0</tt>, <tt>my-page-1</tt>, etc...

acts_as_trackable by Pedro Visintin (peterpunk) in ActiveRecord

English Specify this act if you want to track changes of state of some model. This assumes there is an tracks table ready. class Order < ActiveRecord::Base acts_as_trackable end You can read the specs for in deep details. Usage 1. Install the plugin 2. Run the generator ./script/generate trackablemigration addtrackable_table 3. Rake db:migrate 4. Declare any model acts_as_trackable Espa?ol Usar este acts_as_trackable si deseas llevar el tracking de estado de un modelo. Esto asume que la tabla tracks ya existe. Ejemplo: class Order < ActiveRecord::Base acts_as_trackable end Uso 1. Instala el plugin 2. Ejecutar el generador ./script/generate trackablemigration agregartabla_trackable 3. Rake db:migrate 4. Declara algun modelo acts_as_trackable Puedes leer los specs para ver mas detalles

Advanced Validations by Peeyush Aggarwal (serious__sam) in ActiveRecord

this plugin is intented to patch the problem of validations when done for scope. see Rails Trac ticket 8774 (http://dev.rubyonrails.org/ticket/8774)

AttrLocked by James Coglan (jcoglan) in Security & Protection, HTML Helpers, and ActiveRecord

+AttrLocked+ is a little Rails plugin that provides extra security for your +ActiveRecord+ models. It lets you specify, at the model level, that certain model attributes should never be allowed to change. Perfect for usernames or financial record-keeping.

auto_migrations by PJ Hyett in ActiveRecord

Dynamically modify your database simply by making changes to your schema file! Also generates regular migrations.

Brazilian Rails by Celestino Gomes (Tino) in Utilities, ActiveRecord, and Miscellaneous

How to install? script/plugin install svn://rubyforge.org/var/svn/brazilian-rails More details in http://rubyforge.org/projects/brazilian-rails

custom_field_error by Michael Boutros (Michael Boutros) in HTML Helpers, ActiveRecord, and Miscellaneous

custom_field_error allows you to easily setup custom HTML to be displayed when there is a validation issue with a form. You can setup a different view for every model, or setup a view in one model and have that view be used as the default for all the other models. You can also explicitly override the default view you have chosen by defining another view within another model. Last but not least, you can choose to leave the Rails default view for whatever models you want. It sounds like a lot, but I promise: it's dead simple.