HowFlow

Activerecord Tricks   RSS Feed


http://railscasts.com/episodes/121-non-active-record-model
railscasts.com This episode of Railscasts will show you how to make a model which isn't based on Active Record. You may want to do this if a resource isn't backed by the database.

Share it!   Posted by aroedl aroedl 3 months ago

http://railscasts.com/episodes/119
railscasts.com If you have a lot of logic associated with the data inside a session, you'll need some central location to put this logic. See how to create a session based model in this episode of Railscasts.

Share it!   Posted by aroedl aroedl 3 months ago

http://github.com/ajh/acts_as_soft_deletable/tree/master
github.com Temporarily delete records from AR models: This plugin provides the ability to soft delete ActiveRecord models. When models are destroyed, they will be archived into a special deleted table. They can later be restored easily.

Share it!   Posted by Avatar flood 6 months ago

http://www.extjswithrails.com/2008/04/ordered-attributes.html
extjswithrails.com This Ruby on Rails plugin from Steffen Hiller provides an easy way to order ActiveRecord attributes for using them for csv exports or automated table generation.

Share it!   Posted by aroedl aroedl 6 months ago