Skip to content

Using Active Scaffold On A Data Structure – No Database Table

clyfe edited this page Oct 30, 2010 · 5 revisions

This is a work in progress on how to use Active Scaffold on data that is not in the database. :paging, :search and :update actions are currently supported.

Thanks to Jonathan Viney and his plugin work on [[BaseWithoutTable][http://agilewebdevelopment.com/plugins/activerecord_base_without_table]] plugin. This example does not use his plugin but does use his code as a foundation.

In this example, the data structure is a simple hash – like that used by Active Scaffold Localize.

[[See gist here][http://gist.github.com/655095.js?file=as_orm_agnostic.rb]]

Clone this wiki locally