I'm going to continue poking at rails -- it's very exciting
However, I'm a bit concerned about the warnings about obsolete gems usage. How can I update rails?
Googling indicates to re-install all gems, or grep for old code and manually replace. Is there a single command to do that?
thufir@arrakis ~/rubyCode $
thufir@arrakis ~/rubyCode $ rails dummy
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create components
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create script/process
create test/fixtures
create test/functional
create test/integration
create test/mocks/development
create test/mocks/test
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create Rakefile
create README
create app/controllers/application.rb
create app/helpers/application_helper.rb
create test/test_helper.rb
create config/database.yml
create config/routes.rb
create public/.htaccess
create config/boot.rb
create config/environment.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/breakpointer
create script/console
create script/destroy
create script/generate
create script/performance/benchmarker
create script/performance/profiler
create script/process/reaper
create script/process/spawner
create script/runner
create script/server
create script/plugin
create public/dispatch.rb
create public/dispatch.cgi
create public/dispatch.fcgi
create public/404.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
thufir@arrakis ~/rubyCode $
thufir@arrakis ~/rubyCode $ ruby /home/thufir/rubyCode/dummy/script/
generate
/home/thufir/rubyCode/dummy/script/../config/boot.rb:28:Warning:
require_gem is obsolete. Use gem instead.
Usage: /home/thufir/rubyCode/dummy/script/generate generator [options]
[args]
General Options: -p, --pretend Run but do not make any changes. -f, --force Overwrite files that already exist. -s, --skip Skip files that already exist. -q, --quiet Suppress normal output. -t, --backtrace Debugging: show backtrace on errors. -h, --help Show this help message. -c, --svn Modify files with subversion. (Note: svn must be in path)
Installed Generators Builtin: controller, integration_test, mailer, migration, model, plugin, scaffold, session_migration, web_service
More are available at http://rubyonrails.org/show/Generators 1. Download, for example, login_generator.zip 2. Unzip to directory /home/thufir/.rails/generators/login to use the generator with all your Rails apps or to /home/thufir/rubyCode/dummy/generators/login to use with this app only. 3. Run generate with no arguments for usage information /home/thufir/rubyCode/dummy/script/generate login
Generator gems are also available: 1. gem search -r generator 2. gem install login_generator 3. /home/thufir/rubyCode/dummy/script/generate login
thufir@arrakis ~/rubyCode $ thufir@arrakis ~/rubyCode $ mysql --user=root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.0.44-log Gentoo Linux mysql-5.0.44
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.