In theory, installation should be easy. You'll need the latest
version of AS trunk:
Then, install the active_scaffold_sortable addon:
script/plugin install http://activescaffold.googlecode.com/svn/addons/active_scaffold_sortable
Then, add this line into your active_scaffold config block:
class Admin::QuotesController < Admin::Base
active_scaffold :quotes do |config|
config.actions << :sortable
end
end
Also, add a column to your model called "position" of type integer.
This will be used to store the sort order.
The plugin will automatically disable pagination, and disable custom
sorting for all of the columns, and force sort on "position"
You can change the sort column like this:
config.sortable.column = :position
Tim
Tim
On Nov 5, 8:59 am, timcharper <timchar...@gmail.com> wrote:
> Hi All,
> I just created an add-on plugin for activescaffold to add support for
> the fancy pants drag and drop scriptaculous sortable effect.
>
> In theory, installation should be easy. You'll need the latest
> version of AS trunk:
>
> Then, install the active_scaffold_sortable addon:
>
> script/plugin installhttp://activescaffold.googlecode.com/svn/addons/active_scaffold_sortable