title: How to get jquery animate to work on Rails 4.0.0?
body: <p>Rails: 4.0.0
  Ruby : 1.9.3</p>
  
  <p>I am using jQuery's <code>animate()</code> method in my Rails application.</p>
  
  <p>I can't get it to work.</p>
  
  <p>I've read the documentation at <a href="https://github.com/joliss/jquery-ui-rails" rel="nofollow noreferrer">jquery-ui-rails</a> and followed the steps mentioned there, i.e.,</p>
  
  <ol>
  <li>Installed the gem</li>
  <li>included it in the Gemfile  - <code>gem 'jquery-ui-rails'</code></li>
  <li>bundle install</li>
  <li>Added the <code>//= require jquery.ui.all</code> in my <code>application.js</code> file</li>
  </ol>
  
  <p>Yet I get an <code>Sprockets::FileNotFound</code> error. </p>
  
  <pre><code>Showing /Users/anil20787/workspace/railsdir/depot/app/views/layouts/application.html.erb where line #9 raised:
  
  couldn't find file 'jquery.ui.all'
    (in /Users/anil20787/workspace/railsdir/depot/app/assets/javascripts/application.js:14)
  </code></pre>
  
  <p>Gemfile</p>
  
  <pre><code>source 'https://rubygems.org'
  
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '4.0.0'
  
  # Use sqlite3 as the database for Active Record
  gem 'sqlite3'
  
  # Use SCSS for stylesheets
  gem 'sass-rails', '~&gt; 4.0.0'
  
  # Use Uglifier as compressor for JavaScript assets
  gem 'uglifier', '&gt;= 1.3.0'
  
  # Use CoffeeScript for .js.coffee assets and views
  gem 'coffee-rails', '~&gt; 4.0.0'
  
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', platforms: :ruby
  
  # Use jquery as the JavaScript library
  gem 'jquery-rails'
  gem 'jquery-ui-rails'
  
  # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
  gem 'turbolinks'
  
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  gem 'jbuilder', '~&gt; 1.2'
  
  group :doc do
    # bundle exec rake doc:rails generates the API under doc/api.
    gem 'sdoc', require: false
  end
  </code></pre>
  
  <p>I did also look up <a href="https://stackoverflow.com/questions/17008665/how-to-get-jquery-animate-to-work-in-rails-3-2-8">this post</a> with a problem similar to mine, but it is pointing to the documentation, whose steps I have already followed. Not sure where I have made a mistake.</p>
  
  <p>Any help is appreciated. Thanks</p>