Rails fix: make sure <%= javascript_include_tag \"application\" %> is before any script loading so that jquery gets loaded first.
<%= javascript_include_tag \"application\" %>
jQuery UI doesn't include the standard jQuery library by default. You'll need to add a tag to include the standard jQuery library before including any plugins that use it.