Agile Web Development with Rails, Edition 4

19 Action Controller 17 Retrospective

18 Finding Your Way Around

rake db:version
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Current version: 20140326000009
edit lib/tasks/db_schema_migrations.rake
namespace :db do
  desc "Prints the migrated versions"
  task :schema_migrations => :environment do
    puts ActiveRecord::Base.connection.select_values(
      'select version from schema_migrations order by version' )
  end
end
rake db:schema_migrations
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
20140326000001
20140326000002
20140326000003
20140326000004
20140326000005
20140326000006
20140326000007
20140326000008
20140326000009
ls log
development.log
production.log
test.log
find script -type f
script/rails
echo "puts $:" | IRBRC=tmp/irbrc rails console
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Loading development environment (Rails 3.2.17)
Switch to inspect mode.
>> puts $:
/home/rubys/git/awdwr/edition4/work-193-32/depot/lib
/home/rubys/git/awdwr/edition4/work-193-32/depot/vendor
/home/rubys/git/awdwr/edition4/work-193-32/depot/app/assets
/home/rubys/git/awdwr/edition4/work-193-32/depot/app/controllers
/home/rubys/git/awdwr/edition4/work-193-32/depot/app/helpers
/home/rubys/git/awdwr/edition4/work-193-32/depot/app/mailers
/home/rubys/git/awdwr/edition4/work-193-32/depot/app/models
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/jquery-ui-rails-4.2.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/jquery-ui-rails-4.2.0/app/assets
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/jquery-rails-3.1.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/jquery-rails-3.1.0/vendor
/home/rubys/git/coffee-rails/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/uglifier-2.5.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/extensions/x86_64-linux/1.9.1/sqlite3-1.3.9
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/sqlite3-1.3.9/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/sass-3.3.4/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/rvm-capistrano-1.5.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/extensions/x86_64-linux/1.9.1/mysql2-0.3.15
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/mysql2-0.3.15/lib
/home/rubys/git/rails/railties/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/thor-0.19.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/rdoc-3.12.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/extensions/x86_64-linux/1.9.1/json-1.8.1
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/json-1.8.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/rack-ssl-1.3.4/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/coffee-script-2.2.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/execjs-2.0.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/coffee-script-source-1.7.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/capistrano-2.15.5/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/net-ssh-gateway-1.2.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/net-sftp-2.1.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/net-scp-1.1.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/net-ssh-2.8.0/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/highline-1.6.21/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/extensions/x86_64-linux/1.9.1/bcrypt-ruby-3.0.1
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/bcrypt-ruby-3.0.1/lib
/home/rubys/git/rails/activeresource/lib
/home/rubys/git/rails/activerecord/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/tzinfo-0.3.39/lib
/home/rubys/git/rails/actionmailer/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/mail-2.5.4/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/treetop-1.4.15/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/polyglot-0.3.4/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/mime-types-1.25.1/lib
/home/rubys/git/rails/actionpack/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/sprockets-2.2.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/tilt-1.4.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/hike-1.2.3/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/rack-test-0.6.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/rack-cache-1.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/rack-1.4.5/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/erubis-2.7.0/lib
/home/rubys/git/rails/activemodel/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/builder-3.0.4/lib
/home/rubys/git/rails/activesupport/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/multi_json-1.9.2/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/i18n-0.6.9/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545/gems/rake-10.2.1/lib
/home/rubys/.rvm/gems/ruby-1.9.3-p545@global/gems/bundler-1.5.3/lib
/home/rubys/git/sass-rails/lib
/home/rubys/git/rails/lib
/home/rubys/git/journey/lib
/home/rubys/git/arel/lib
/home/rubys/git/gorp/lib
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/x86_64-linux
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/vendor_ruby/1.9.1
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/vendor_ruby
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1
/home/rubys/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/x86_64-linux
/home/rubys/git/rails/actionpack/lib/action_controller/vendor/html-scanner
=> nil
>> 

19 Action Controller 17 Retrospective