{memo: :rails3, action: :install, plugin: 'jquery_and_jquery-ui'}
インストール手順メモ。
http://d.hatena.ne.jp/t_nagamatsu/20101009
Rails 3 + mongoDB + haml + RSpec + jQuery のインストール - 1 - Masatomo Nakano Blog
rails new project
$ rails new googlemaps
$ cd googlemaps/
$ bundle install
edit Gemfile
$ cat <<EOF >> Gemfile gem "jquery-rails" EOF $ bundle install
install jquery and jquery-ui
$ rails g jquery:install --ui remove public/javascripts/controls.js remove public/javascripts/dragdrop.js remove public/javascripts/effects.js remove public/javascripts/prototype.js fetching jQuery (1.5) create public/javascripts/jquery.js create public/javascripts/jquery.min.js fetching jQuery UI (latest 1.x release) create public/javascripts/jquery-ui.js create public/javascripts/jquery-ui.min.js fetching jQuery UJS adapter (github HEAD) conflict public/javascripts/rails.js Overwrite /home/alice/rails/googlemaps/public/javascripts/rails.js? (enter "h" for help) [Ynaqdh] y force public/javascripts/rails.js
dl jquery-ui.css and images
Download Builder | jQuery UIからDLして解凍。
で、public/stylesheetsにコピる。$ ls css development-bundle index.html js $ cd css/ui-lightness/ $ ls images jquery-ui-1.8.8.custom.css $ cp -rf * [your_rails_app_root_path]/public/stylesheets