Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method sortable for jquery object #7

Open
naaano opened this issue Nov 5, 2013 · 1 comment
Open

undefined method sortable for jquery object #7

naaano opened this issue Nov 5, 2013 · 1 comment

Comments

@naaano
Copy link

naaano commented Nov 5, 2013

what i'm doing wrong?

Inspecting, active_scaffold_sortable.js has this error:

Uncaught TypeError: Object [object Object] has no method 'sortable'

at line https://github.com/activescaffold/active_scaffold_sortable/blob/master/app/assets/javascripts/jquery/active_scaffold_sortable.js#L39

content.sortable(sortable_options);

content is the jquery object which has all records: tbody#as_forms-3-fields-tbody.records

but "sortable" is not defined in jquery context.

@scambra
Copy link
Member

scambra commented Nov 6, 2013

jquery_ui is not loaded, you must use jquery-ui-rails gem if you use jquery-rails >= 3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants