public Method

GeneratorMethods.sortable(id, options = {})

Creates a script.aculo.us sortable element. Useful to recreate sortable elements after items get added or deleted. See ActionView::Helpers::ScriptaculousHelper for more information.

Source Code

# File action_view/helpers/prototype_helper.rb, line 919
def sortable(id, options = {})
  record @context.send(:sortable_element_js, id, options)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.