<commit_before>h1. Drag-Drop Sortable for ActiveScaffold

h2. Overview

This plugin enables those slicker-than-snot ajax drag-drop sortable elements on your active-scaffold page, with so little configuration you almost get it for free.

h2. Installation

You'll need at least ActiveScaffold 1.1.1 to use this, and probably rails 2.0

<pre>
# rails 2.1
script/plugin install git://github.com/activescaffold/active_scaffold_sortable.git

# rails 2.0
git clone git://github.com/activescaffold/active_scaffold_sortable.git vendor/plugins/active_scaffold_sortable
</pre>


h2. Usage

h4. Step 1

Create a model with a column named 'position':

<pre>
# app/models/entry.rb

# id           integer
# title        string(255)
# birthday     date
# position     integer

class Entry < ActiveRecord::Base
end
</pre>

h4. Step 2

Create your scaffold controller 

<pre>
# app/controllers/entries_controller.rb

class EntryController < ApplicationController<commit_msg>not compatible yet warning<commit_after>h1. Drag-Drop Sortable for ActiveScaffold

Currently, this plugin is not compatible with rails 2.1, due to some outstanding compatibility issues with ActiveScaffold.

h2. Overview

This plugin enables those slicker-than-snot ajax drag-drop sortable elements on your active-scaffold page, with so little configuration you almost get it for free.

h2. Installation

You'll need at least ActiveScaffold 1.1.1 to use this, and probably rails 2.0


<pre>
# rails 2.0
git clone git://github.com/activescaffold/active_scaffold_sortable.git vendor/plugins/active_scaffold_sortable
</pre>

h2. Usage

h4. Step 1

Create a model with a column named 'position':

<pre>
# app/models/entry.rb

# id           integer
# title        string(255)
# birthday     date
# position     integer

class Entry < ActiveRecord::Base
end
</pre>

h4. Step 2

Create your scaffold controller 

<pre>
# app/controllers/entries_controller.rb

class EntryController < ApplicationController
{'fraction_non_alphanumeric': 0.07365728900255754, 'fraction_numerical': 0.020460358056265986, 'mean_word_length': 4.02827763496144, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4904056', 'n_tokens_mistral': 642, 'n_tokens_neox': 600, 'n_words': 210}