aboutsummaryrefslogtreecommitdiffstats
path: root/railties/configs
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-16 15:56:59 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-19 16:10:42 +0200
commitced68c7430216424419ecb4525d3bc6b6847f9c6 (patch)
tree15165fb2585dbe6d351d694361a0dec16b4c8bd9 /railties/configs
parent42e51ea9c03cdd4833585239c239c420cf808758 (diff)
downloadrails-ced68c7430216424419ecb4525d3bc6b6847f9c6.tar.gz
rails-ced68c7430216424419ecb4525d3bc6b6847f9c6.tar.bz2
rails-ced68c7430216424419ecb4525d3bc6b6847f9c6.zip
App generator is working using new generators (except for templates).
Diffstat (limited to 'railties/configs')
-rw-r--r--railties/configs/databases/frontbase.yml28
-rw-r--r--railties/configs/databases/ibm_db.yml62
-rw-r--r--railties/configs/databases/mysql.yml60
-rw-r--r--railties/configs/databases/oracle.yml39
-rw-r--r--railties/configs/databases/postgresql.yml51
-rw-r--r--railties/configs/databases/sqlite2.yml19
-rw-r--r--railties/configs/databases/sqlite3.yml22
-rw-r--r--railties/configs/initializers/backtrace_silencers.rb7
-rw-r--r--railties/configs/initializers/inflections.rb10
-rw-r--r--railties/configs/initializers/mime_types.rb5
-rw-r--r--railties/configs/initializers/new_rails_defaults.rb19
-rw-r--r--railties/configs/initializers/session_store.rb15
-rw-r--r--railties/configs/locales/en.yml5
-rw-r--r--railties/configs/routes.rb43
-rw-r--r--railties/configs/seeds.rb7
15 files changed, 0 insertions, 392 deletions
diff --git a/railties/configs/databases/frontbase.yml b/railties/configs/databases/frontbase.yml
deleted file mode 100644
index c0c3588be1..0000000000
--- a/railties/configs/databases/frontbase.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-# FrontBase versions 4.x
-#
-# Get the bindings:
-# gem install ruby-frontbase
-
-development:
- adapter: frontbase
- host: localhost
- database: <%= app_name %>_development
- username: <%= app_name %>
- password: ''
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: frontbase
- host: localhost
- database: <%= app_name %>_test
- username: <%= app_name %>
- password: ''
-
-production:
- adapter: frontbase
- host: localhost
- database: <%= app_name %>_production
- username: <%= app_name %>
- password: ''
diff --git a/railties/configs/databases/ibm_db.yml b/railties/configs/databases/ibm_db.yml
deleted file mode 100644
index a9716ddb44..0000000000
--- a/railties/configs/databases/ibm_db.yml
+++ /dev/null
@@ -1,62 +0,0 @@
-# IBM Dataservers
-#
-# Home Page
-# http://rubyforge.org/projects/rubyibm/
-#
-# To install the ibm_db gem:
-# On Linux:
-# Source the db2profile file and set the necessary environment variables:
-#
-# . /home/db2inst1/sqllib/db2profile
-# export IBM_DB_DIR=/opt/ibm/db2/V9.1
-# export IBM_DB_LIB=/opt/ibm/db2/V9.1/lib32
-#
-# Then issue the command: gem install ibm_db
-#
-# On Windows:
-# Issue the command: gem install ibm_db
-# If prompted, select the mswin32 option
-#
-# For more details on the installation refer to http://rubyforge.org/docman/view.php/2361/7682/IBM_DB_GEM.pdf
-#
-# For more details on the connection parameters below refer to:
-# http://rubyibm.rubyforge.org/docs/adapter/0.9.0/rdoc/classes/ActiveRecord/ConnectionAdapters/IBM_DBAdapter.html
-
-development:
- adapter: ibm_db
- username: db2inst1
- password:
- database: <%= app_name[0,4] %>_dev
- #schema: db2inst1
- #host: localhost
- #port: 50000
- #account: my_account
- #app_user: my_app_user
- #application: my_application
- #workstation: my_workstation
-
-test:
- adapter: ibm_db
- username: db2inst1
- password:
- database: <%= app_name[0,4] %>_tst
- #schema: db2inst1
- #host: localhost
- #port: 50000
- #account: my_account
- #app_user: my_app_user
- #application: my_application
- #workstation: my_workstation
-
-production:
- adapter: ibm_db
- username: db2inst1
- password:
- database: <%= app_name[0,4] %>_prd
- #schema: db2inst1
- #host: localhost
- #port: 50000
- #account: my_account
- #app_user: my_app_user
- #application: my_application
- #workstation: my_workstation \ No newline at end of file
diff --git a/railties/configs/databases/mysql.yml b/railties/configs/databases/mysql.yml
deleted file mode 100644
index 1a14bfb332..0000000000
--- a/railties/configs/databases/mysql.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-# MySQL. Versions 4.1 and 5.0 are recommended.
-#
-# Install the MySQL driver:
-# gem install mysql
-# On Mac OS X:
-# sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
-# On Mac OS X Leopard:
-# sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
-# This sets the ARCHFLAGS environment variable to your native architecture
-# On Windows:
-# gem install mysql
-# Choose the win32 build.
-# Install MySQL and put its /bin directory on your path.
-#
-# And be sure to use new-style password hashing:
-# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
-development:
- adapter: mysql
- encoding: utf8
- reconnect: false
- database: <%= app_name %>_development
- pool: 5
- username: root
- password:
-<% if socket -%>
- socket: <%= socket %>
-<% else -%>
- host: localhost
-<% end -%>
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: mysql
- encoding: utf8
- reconnect: false
- database: <%= app_name %>_test
- pool: 5
- username: root
- password:
-<% if socket -%>
- socket: <%= socket %>
-<% else -%>
- host: localhost
-<% end -%>
-
-production:
- adapter: mysql
- encoding: utf8
- reconnect: false
- database: <%= app_name %>_production
- pool: 5
- username: root
- password:
-<% if socket -%>
- socket: <%= socket %>
-<% else -%>
- host: localhost
-<% end -%>
diff --git a/railties/configs/databases/oracle.yml b/railties/configs/databases/oracle.yml
deleted file mode 100644
index a1883f6256..0000000000
--- a/railties/configs/databases/oracle.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-# Oracle/OCI 8i, 9, 10g
-#
-# Requires Ruby/OCI8:
-# http://rubyforge.org/projects/ruby-oci8/
-#
-# Specify your database using any valid connection syntax, such as a
-# tnsnames.ora service name, or a SQL connect url string of the form:
-#
-# //host:[port][/service name]
-#
-# By default prefetch_rows (OCI_ATTR_PREFETCH_ROWS) is set to 100. And
-# until true bind variables are supported, cursor_sharing is set by default
-# to 'similar'. Both can be changed in the configation below; the defaults
-# are equivalent to specifying:
-#
-# prefetch_rows: 100
-# cursor_sharing: similar
-#
-
-development:
- adapter: oracle
- database: <%= app_name %>_development
- username: <%= app_name %>
- password:
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: oracle
- database: <%= app_name %>_test
- username: <%= app_name %>
- password:
-
-production:
- adapter: oracle
- database: <%= app_name %>_production
- username: <%= app_name %>
- password:
diff --git a/railties/configs/databases/postgresql.yml b/railties/configs/databases/postgresql.yml
deleted file mode 100644
index f600e054cf..0000000000
--- a/railties/configs/databases/postgresql.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-# PostgreSQL. Versions 7.4 and 8.x are supported.
-#
-# Install the ruby-postgres driver:
-# gem install ruby-postgres
-# On Mac OS X:
-# gem install ruby-postgres -- --include=/usr/local/pgsql
-# On Windows:
-# gem install ruby-postgres
-# Choose the win32 build.
-# Install PostgreSQL and put its /bin directory on your path.
-development:
- adapter: postgresql
- encoding: unicode
- database: <%= app_name %>_development
- pool: 5
- username: <%= app_name %>
- password:
-
- # Connect on a TCP socket. Omitted by default since the client uses a
- # domain socket that doesn't need configuration. Windows does not have
- # domain sockets, so uncomment these lines.
- #host: localhost
- #port: 5432
-
- # Schema search path. The server defaults to $user,public
- #schema_search_path: myapp,sharedapp,public
-
- # Minimum log levels, in increasing order:
- # debug5, debug4, debug3, debug2, debug1,
- # log, notice, warning, error, fatal, and panic
- # The server defaults to notice.
- #min_messages: warning
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: postgresql
- encoding: unicode
- database: <%= app_name %>_test
- pool: 5
- username: <%= app_name %>
- password:
-
-production:
- adapter: postgresql
- encoding: unicode
- database: <%= app_name %>_production
- pool: 5
- username: <%= app_name %>
- password:
diff --git a/railties/configs/databases/sqlite2.yml b/railties/configs/databases/sqlite2.yml
deleted file mode 100644
index 46f01cb42c..0000000000
--- a/railties/configs/databases/sqlite2.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-# SQLite version 2.x
-# gem install sqlite-ruby
-development:
- adapter: sqlite
- database: db/development.sqlite2
- pool: 5
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: sqlite
- database: db/test.sqlite2
- pool: 5
-
-production:
- adapter: sqlite
- database: db/production.sqlite2
- pool: 5
diff --git a/railties/configs/databases/sqlite3.yml b/railties/configs/databases/sqlite3.yml
deleted file mode 100644
index 025d62a8d8..0000000000
--- a/railties/configs/databases/sqlite3.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3-ruby (not necessary on OS X Leopard)
-development:
- adapter: sqlite3
- database: db/development.sqlite3
- pool: 5
- timeout: 5000
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- adapter: sqlite3
- database: db/test.sqlite3
- pool: 5
- timeout: 5000
-
-production:
- adapter: sqlite3
- database: db/production.sqlite3
- pool: 5
- timeout: 5000
diff --git a/railties/configs/initializers/backtrace_silencers.rb b/railties/configs/initializers/backtrace_silencers.rb
deleted file mode 100644
index 839d4cde19..0000000000
--- a/railties/configs/initializers/backtrace_silencers.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers! \ No newline at end of file
diff --git a/railties/configs/initializers/inflections.rb b/railties/configs/initializers/inflections.rb
deleted file mode 100644
index d531b8bb82..0000000000
--- a/railties/configs/initializers/inflections.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format
-# (all these examples are active by default):
-# ActiveSupport::Inflector.inflections do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
diff --git a/railties/configs/initializers/mime_types.rb b/railties/configs/initializers/mime_types.rb
deleted file mode 100644
index 72aca7e441..0000000000
--- a/railties/configs/initializers/mime_types.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
-# Mime::Type.register_alias "text/html", :iphone
diff --git a/railties/configs/initializers/new_rails_defaults.rb b/railties/configs/initializers/new_rails_defaults.rb
deleted file mode 100644
index 8ec3186c84..0000000000
--- a/railties/configs/initializers/new_rails_defaults.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# These settings change the behavior of Rails 2 apps and will be defaults
-# for Rails 3. You can remove this initializer when Rails 3 is released.
-
-if defined?(ActiveRecord)
- # Include Active Record class name as root for JSON serialized output.
- ActiveRecord::Base.include_root_in_json = true
-
- # Store the full class name (including module namespace) in STI type column.
- ActiveRecord::Base.store_full_sti_class = true
-end
-
-# Use ISO 8601 format for JSON serialized times and dates.
-ActiveSupport.use_standard_json_time_format = true
-
-# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
-# if you're including raw json in an HTML page.
-ActiveSupport.escape_html_entities_in_json = false \ No newline at end of file
diff --git a/railties/configs/initializers/session_store.rb b/railties/configs/initializers/session_store.rb
deleted file mode 100644
index 4499ab84b6..0000000000
--- a/railties/configs/initializers/session_store.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key for verifying cookie session data integrity.
-# If you change this key, all old sessions will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-ActionController::Base.session = {
- :key => '_<%= app_name %>_session',
- :secret => '<%= app_secret %>'
-}
-
-# Use the database for sessions instead of the cookie-based default,
-# which shouldn't be used to store highly confidential information
-# (create the session table with "rake db:sessions:create")
-# ActionController::Base.session_store = :active_record_store
diff --git a/railties/configs/locales/en.yml b/railties/configs/locales/en.yml
deleted file mode 100644
index f265c068d8..0000000000
--- a/railties/configs/locales/en.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Sample localization file for English. Add more files in this directory for other locales.
-# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
-
-en:
- hello: "Hello world" \ No newline at end of file
diff --git a/railties/configs/routes.rb b/railties/configs/routes.rb
deleted file mode 100644
index ea14ce1bfc..0000000000
--- a/railties/configs/routes.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-ActionController::Routing::Routes.draw do |map|
- # The priority is based upon order of creation: first created -> highest priority.
-
- # Sample of regular route:
- # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
- # Keep in mind you can assign values other than :controller and :action
-
- # Sample of named route:
- # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
- # This route can be invoked with purchase_url(:id => product.id)
-
- # Sample resource route (maps HTTP verbs to controller actions automatically):
- # map.resources :products
-
- # Sample resource route with options:
- # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
-
- # Sample resource route with sub-resources:
- # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
-
- # Sample resource route with more complex sub-resources
- # map.resources :products do |products|
- # products.resources :comments
- # products.resources :sales, :collection => { :recent => :get }
- # end
-
- # Sample resource route within a namespace:
- # map.namespace :admin do |admin|
- # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
- # admin.resources :products
- # end
-
- # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
- # map.root :controller => "welcome"
-
- # See how all your routes lay out with "rake routes"
-
- # Install the default routes as the lowest priority.
- # Note: These default routes make all actions in every controller accessible via GET requests. You should
- # consider removing or commenting them out if you're using named routes and resources.
- map.connect ':controller/:action/:id'
- map.connect ':controller/:action/:id.:format'
-end
diff --git a/railties/configs/seeds.rb b/railties/configs/seeds.rb
deleted file mode 100644
index 3174d0cb8a..0000000000
--- a/railties/configs/seeds.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
-#
-# Examples:
-#
-# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
-# Major.create(:name => 'Daley', :city => cities.first)