Skip to content

Instantly share code, notes, and snippets.

@JonasNielsen
Created March 2, 2010 17:35
Show Gist options
  • Save JonasNielsen/319705 to your computer and use it in GitHub Desktop.
Save JonasNielsen/319705 to your computer and use it in GitHub Desktop.
page.make_topics_sortable
# RETURNS ERROR:
# ActionView::TemplateError (stack level too deep)
# The sortable_element function is somehow the problem
def make_topics_sortable()
page.replace_html('sortable_list_control', sortable_element('topics', :url => sort_topics_path))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment