rails 0.14.3 → 0.14.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails might be problematic. Click here for more details.
- data/CHANGELOG +51 -0
- data/Rakefile +8 -7
- data/bin/about +1 -1
- data/bin/breakpointer +1 -1
- data/bin/console +1 -1
- data/bin/destroy +1 -1
- data/bin/generate +1 -1
- data/bin/performance/benchmarker +1 -1
- data/bin/performance/profiler +1 -1
- data/bin/plugin +1 -1
- data/bin/process/reaper +1 -1
- data/bin/process/spawner +1 -1
- data/bin/process/spinner +1 -1
- data/bin/rails +1 -1
- data/bin/runner +1 -1
- data/bin/server +1 -1
- data/builtin/controllers/rails_info_controller.rb +11 -0
- data/environments/boot.rb +2 -0
- data/environments/development.rb +2 -0
- data/environments/environment.rb +4 -2
- data/environments/production.rb +2 -0
- data/environments/test.rb +2 -0
- data/html/images/rails.png +0 -0
- data/html/index.html +270 -71
- data/html/javascripts/controls.js +30 -1
- data/html/javascripts/dragdrop.js +37 -17
- data/html/javascripts/effects.js +3 -91
- data/html/javascripts/prototype.js +109 -67
- data/lib/commands/console.rb +1 -0
- data/lib/commands/performance/benchmarker.rb +0 -2
- data/lib/commands/performance/profiler.rb +0 -1
- data/lib/commands/plugin.rb +1 -1
- data/lib/commands/servers/lighttpd.rb +25 -21
- data/lib/dispatcher.rb +1 -0
- data/lib/initializer.rb +10 -5
- data/lib/rails_generator/commands.rb +53 -4
- data/lib/rails_generator/generators/applications/app/app_generator.rb +6 -4
- data/lib/rails_generator/generators/components/migration/migration_generator.rb +0 -51
- data/lib/rails_generator/generators/components/model/model_generator.rb +1 -1
- data/lib/rails_generator/generators/components/model/templates/unit_test.rb +1 -1
- data/lib/rails_generator/generators/components/session_migration/USAGE +15 -0
- data/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb +12 -0
- data/lib/rails_generator/generators/components/session_migration/templates/migration.rb +15 -0
- data/lib/rails_generator/options.rb +6 -1
- data/lib/rails_info.rb +12 -2
- data/lib/rails_version.rb +2 -2
- data/lib/railties_path.rb +1 -1
- data/lib/tasks/databases.rake +9 -6
- data/lib/tasks/documentation.rake +3 -4
- data/lib/tasks/framework.rake +22 -22
- data/lib/tasks/javascripts.rake +1 -1
- data/lib/test_help.rb +4 -0
- metadata +17 -7
data/CHANGELOG
CHANGED
@@ -1,3 +1,54 @@
|
|
1
|
+
*0.14.4 (RC5)* (December 7th, 2005)
|
2
|
+
|
3
|
+
* Add builtin/ to the gemspec. Closes #3047. [Nicholas Seckar, Sam Stephenson]
|
4
|
+
|
5
|
+
* Run initialize_logger in script/lighttpd to ensure the log file exists before tailing it. [Sam Stephenson]
|
6
|
+
|
7
|
+
* Make load_fixtures include csv fixtures. #3053. [me@mdaines.com]
|
8
|
+
|
9
|
+
* Fix freeze_gems so that the latest rails version is dumped by default. [Nicholas Seckar]
|
10
|
+
|
11
|
+
* Model generator: correct relative path to test_helper in unit test. [Jeremy Kemper]
|
12
|
+
|
13
|
+
* Make the db_schema_dump task honor the SCHEMA environment variable if present the way db_schema_import does. #2931. [Blair Zajac]
|
14
|
+
|
15
|
+
* Make help for the console command more explicit about how to specify the desired environment in which to run the console. #2911. [anonymous]
|
16
|
+
|
17
|
+
* PostgreSQL: the purge_test_database Rake task shouldn't explicitly specify the template0 template when creating a fresh test database. #2964 [dreamer3@gmail.com]
|
18
|
+
|
19
|
+
* Introducing the session_migration generator. Creates an add_session_table migration. Allows generator to specify migrations directory. #2958, #2960 [Rick Olson]
|
20
|
+
|
21
|
+
* Update to Prototype 1.4.0_rc4. Closes #2943 (old Array.prototype.reverse behavior can be obtained by passing false as an argument). [Sam Stephenson]
|
22
|
+
|
23
|
+
* Eliminate nil from newly generated logfiles. #2927 [Blair Zajac <blair@orcaware.com>]
|
24
|
+
|
25
|
+
* Update to Prototype 1.4.0_rc3. Closes #1893, #2505, #2550, #2748, #2783. [Sam Stephenson]
|
26
|
+
|
27
|
+
* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]
|
28
|
+
|
29
|
+
* Update to latest script.aculo.us version (as of [3031])
|
30
|
+
|
31
|
+
* SQLite: the clone_structure_to_test and purge_test_database Rake tasks should always use the test environment. #2846 [Rick Olson]
|
32
|
+
|
33
|
+
* Make sure that legacy db tasks also reference :database for SQLite #2830 [kazuhiko@fdiary.net]
|
34
|
+
|
35
|
+
* Pass __FILE__ when evaluating plugins' init.rb. #2817 [james.adam@gmail.com]
|
36
|
+
|
37
|
+
* Better svn status matching for generators. #2814 [François Beausoleil <francois.beausoleil@gmail.com>, Blair Zajac <blair@orcaware.com>]
|
38
|
+
|
39
|
+
* Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH]
|
40
|
+
|
41
|
+
* Don't detach or fork for script/server tailing [Nicholas Seckar]
|
42
|
+
|
43
|
+
* Changed all script/* to use #!/usr/bin/env ruby instead of hard-coded Ruby path. public/dispatcher.* still uses the hard-coded path for compatibility with web servers that don't have Ruby in path [DHH]
|
44
|
+
|
45
|
+
* Force RAILS_ENV to be "test" when running tests, so that ENV["RAILS_ENV"] = "production" in config/environment.rb doesn't wreck havok [DHH] #2660
|
46
|
+
|
47
|
+
* Correct versioning in :freeze_gems Rake task. #2778 [jakob@mentalized.net, Jeremy Kemper]
|
48
|
+
|
49
|
+
* Added an omnipresent RailsInfoController with a properties action that delivers an HTML rendering of Rails::Info (but only when local_request? is true). Added a new default index.html which fetches this with Ajax. [Sam Stephenson]
|
50
|
+
|
51
|
+
|
1
52
|
*0.14.3 (RC4)* (November 7th, 2005)
|
2
53
|
|
3
54
|
* Add 'add_new_scripts' rake task for adding new rails scripts to script/* [Jamis Buck]
|
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ require File.join(File.dirname(__FILE__), 'lib', 'rails_version')
|
|
11
11
|
|
12
12
|
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
13
13
|
PKG_NAME = 'rails'
|
14
|
-
PKG_VERSION = Rails::
|
14
|
+
PKG_VERSION = Rails::VERSION::STRING + PKG_BUILD
|
15
15
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
16
16
|
PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "../#{PKG_NAME}"
|
17
17
|
|
@@ -34,7 +34,7 @@ PUBLIC_DIRS = %w( images javascripts stylesheets )
|
|
34
34
|
TEST_DIRS = %w( fixtures unit functional mocks mocks/development mocks/test )
|
35
35
|
|
36
36
|
LOG_FILES = %w( server.log development.log test.log production.log )
|
37
|
-
HTML_FILES = %w( 404.html 500.html index.html robots.txt favicon.ico
|
37
|
+
HTML_FILES = %w( 404.html 500.html index.html robots.txt favicon.ico images/rails.png
|
38
38
|
javascripts/prototype.js
|
39
39
|
javascripts/effects.js javascripts/dragdrop.js javascripts/controls.js )
|
40
40
|
BIN_FILES = %w( about breakpointer console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/spinner runner server plugin )
|
@@ -252,6 +252,7 @@ end
|
|
252
252
|
PKG_FILES = FileList[
|
253
253
|
'[a-zA-Z]*',
|
254
254
|
'bin/**/*',
|
255
|
+
'builtin/**/*',
|
255
256
|
'configs/**/*',
|
256
257
|
'doc/**/*',
|
257
258
|
'dispatches/**/*',
|
@@ -272,11 +273,11 @@ spec = Gem::Specification.new do |s|
|
|
272
273
|
EOF
|
273
274
|
|
274
275
|
s.add_dependency('rake', '>= 0.6.2')
|
275
|
-
s.add_dependency('activesupport', '= 1.2.
|
276
|
-
s.add_dependency('activerecord', '= 1.13.
|
277
|
-
s.add_dependency('actionpack', '= 1.11.
|
278
|
-
s.add_dependency('actionmailer', '= 1.1.
|
279
|
-
s.add_dependency('actionwebservice', '= 0.9.
|
276
|
+
s.add_dependency('activesupport', '= 1.2.4' + PKG_BUILD)
|
277
|
+
s.add_dependency('activerecord', '= 1.13.1' + PKG_BUILD)
|
278
|
+
s.add_dependency('actionpack', '= 1.11.1' + PKG_BUILD)
|
279
|
+
s.add_dependency('actionmailer', '= 1.1.4' + PKG_BUILD)
|
280
|
+
s.add_dependency('actionwebservice', '= 0.9.4' + PKG_BUILD)
|
280
281
|
|
281
282
|
s.rdoc_options << '--exclude' << '.'
|
282
283
|
s.has_rdoc = false
|
data/bin/about
CHANGED
data/bin/breakpointer
CHANGED
data/bin/console
CHANGED
data/bin/destroy
CHANGED
data/bin/generate
CHANGED
data/bin/performance/benchmarker
CHANGED
data/bin/performance/profiler
CHANGED
data/bin/plugin
CHANGED
data/bin/process/reaper
CHANGED
data/bin/process/spawner
CHANGED
data/bin/process/spinner
CHANGED
data/bin/rails
CHANGED
@@ -12,7 +12,7 @@ end
|
|
12
12
|
Signal.trap("INT") { puts; exit }
|
13
13
|
|
14
14
|
require File.dirname(__FILE__) + '/../lib/rails_version'
|
15
|
-
abort "Rails #{Rails::
|
15
|
+
abort "Rails #{Rails::VERSION::STRING}" if %w(--version -v).include? ARGV.first
|
16
16
|
|
17
17
|
require File.dirname(__FILE__) + '/../lib/rails_generator'
|
18
18
|
|
data/bin/runner
CHANGED
data/bin/server
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
module Controllers #:nodoc:
|
2
|
+
class RailsInfoController < ApplicationController
|
3
|
+
def properties
|
4
|
+
if local_request?
|
5
|
+
render :inline => Rails::Info.to_html
|
6
|
+
else
|
7
|
+
render :text => '<p>For security purposes, this information is only available to local requests.</p>', :status => 500
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/environments/boot.rb
CHANGED
data/environments/development.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
2
|
+
|
1
3
|
# In the development environment your application's code is reloaded on
|
2
4
|
# every request. This slows down response time but is perfect for development
|
3
5
|
# since you don't have to restart the webserver when you make code changes.
|
data/environments/environment.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
# Be sure to restart your web server when you modify this file.
|
2
2
|
|
3
|
-
# Uncomment below to force Rails into production mode
|
4
|
-
#
|
3
|
+
# Uncomment below to force Rails into production mode when
|
4
|
+
# you don't control web/app server and can't set it the proper way
|
5
5
|
# ENV['RAILS_ENV'] ||= 'production'
|
6
6
|
|
7
7
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
8
8
|
require File.join(File.dirname(__FILE__), 'boot')
|
9
9
|
|
10
10
|
Rails::Initializer.run do |config|
|
11
|
+
# Settings in config/environments/* take precedence those specified here
|
12
|
+
|
11
13
|
# Skip frameworks you're not going to use
|
12
14
|
# config.frameworks -= [ :action_web_service, :action_mailer ]
|
13
15
|
|
data/environments/production.rb
CHANGED
data/environments/test.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
2
|
+
|
1
3
|
# The test environment is used exclusively to run your application's
|
2
4
|
# test suite. You never need to work with it otherwise. Remember that
|
3
5
|
# your test database is "scratch space" for the test suite and is wiped
|
Binary file
|
data/html/index.html
CHANGED
@@ -1,78 +1,277 @@
|
|
1
|
-
<!DOCTYPE
|
2
|
-
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html>
|
4
|
-
<head>
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Ruby on Rails: Welcome aboard</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body {
|
9
|
+
margin: 0;
|
10
|
+
margin-bottom: 25px;
|
11
|
+
padding: 0;
|
12
|
+
background-color: #f0f0f0;
|
13
|
+
font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
|
14
|
+
font-size: 13px;
|
15
|
+
color: #333;
|
16
|
+
}
|
17
|
+
|
18
|
+
h1 {
|
19
|
+
font-size: 28px;
|
20
|
+
color: #000;
|
21
|
+
}
|
22
|
+
|
23
|
+
a {color: #03c}
|
24
|
+
a:hover {
|
25
|
+
background-color: #03c;
|
26
|
+
color: white;
|
27
|
+
text-decoration: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
#page {
|
32
|
+
background-color: #f0f0f0;
|
33
|
+
width: 750px;
|
34
|
+
margin: 0;
|
35
|
+
margin-left: auto;
|
36
|
+
margin-right: auto;
|
37
|
+
}
|
38
|
+
|
39
|
+
#content {
|
40
|
+
float: left;
|
41
|
+
background-color: white;
|
42
|
+
border: 3px solid #aaa;
|
43
|
+
border-top: none;
|
44
|
+
padding: 25px;
|
45
|
+
width: 500px;
|
46
|
+
}
|
47
|
+
|
48
|
+
#sidebar {
|
49
|
+
float: right;
|
50
|
+
width: 175px;
|
51
|
+
}
|
8
52
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
53
|
+
#footer {
|
54
|
+
clear: both;
|
55
|
+
}
|
56
|
+
|
14
57
|
|
15
|
-
|
16
|
-
|
17
|
-
|
58
|
+
#header, #about, #getting-started {
|
59
|
+
padding-left: 75px;
|
60
|
+
padding-right: 30px;
|
61
|
+
}
|
18
62
|
|
19
|
-
pre {
|
20
|
-
background-color: #eee;
|
21
|
-
padding: 10px;
|
22
|
-
font-size: 11px;
|
23
|
-
}
|
24
63
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
64
|
+
#header {
|
65
|
+
background-image: url("images/rails.png");
|
66
|
+
background-repeat: no-repeat;
|
67
|
+
background-position: top left;
|
68
|
+
height: 64px;
|
69
|
+
}
|
70
|
+
#header h1, #header h2 {margin: 0}
|
71
|
+
#header h2 {
|
72
|
+
color: #888;
|
73
|
+
font-weight: normal;
|
74
|
+
font-size: 16px;
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
#about h3 {
|
79
|
+
margin: 0;
|
80
|
+
margin-bottom: 10px;
|
81
|
+
font-size: 14px;
|
82
|
+
}
|
83
|
+
|
84
|
+
#about-content {
|
85
|
+
background-color: #ffd;
|
86
|
+
border: 1px solid #fc0;
|
87
|
+
margin-left: -11px;
|
88
|
+
}
|
89
|
+
#about-content table {
|
90
|
+
margin-top: 10px;
|
91
|
+
margin-bottom: 10px;
|
92
|
+
font-size: 11px;
|
93
|
+
border-collapse: collapse;
|
94
|
+
}
|
95
|
+
#about-content td {
|
96
|
+
padding: 10px;
|
97
|
+
padding-top: 3px;
|
98
|
+
padding-bottom: 3px;
|
99
|
+
}
|
100
|
+
#about-content td.name {color: #555}
|
101
|
+
#about-content td.value {color: #000}
|
102
|
+
|
103
|
+
#about-content.failure {
|
104
|
+
background-color: #fcc;
|
105
|
+
border: 1px solid #f00;
|
106
|
+
}
|
107
|
+
#about-content.failure p {
|
108
|
+
margin: 0;
|
109
|
+
padding: 10px;
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
#getting-started {
|
114
|
+
border-top: 1px solid #ccc;
|
115
|
+
margin-top: 25px;
|
116
|
+
padding-top: 15px;
|
117
|
+
}
|
118
|
+
#getting-started h1 {
|
119
|
+
margin: 0;
|
120
|
+
font-size: 20px;
|
121
|
+
}
|
122
|
+
#getting-started h2 {
|
123
|
+
margin: 0;
|
124
|
+
font-size: 14px;
|
125
|
+
font-weight: normal;
|
126
|
+
color: #333;
|
127
|
+
margin-bottom: 25px;
|
128
|
+
}
|
129
|
+
#getting-started ol {
|
130
|
+
margin-left: 0;
|
131
|
+
padding-left: 0;
|
132
|
+
}
|
133
|
+
#getting-started li {
|
134
|
+
font-size: 18px;
|
135
|
+
color: #888;
|
136
|
+
margin-bottom: 25px;
|
137
|
+
}
|
138
|
+
#getting-started li h2 {
|
139
|
+
margin: 0;
|
140
|
+
font-weight: normal;
|
141
|
+
font-size: 18px;
|
142
|
+
color: #333;
|
143
|
+
}
|
144
|
+
#getting-started li p {
|
145
|
+
color: #555;
|
146
|
+
font-size: 13px;
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
#search {
|
151
|
+
margin: 0;
|
152
|
+
padding-top: 10px;
|
153
|
+
padding-bottom: 10px;
|
154
|
+
font-size: 11px;
|
155
|
+
}
|
156
|
+
#search input {
|
157
|
+
font-size: 11px;
|
158
|
+
margin: 2px;
|
159
|
+
}
|
160
|
+
#search-text {width: 170px}
|
161
|
+
|
162
|
+
|
163
|
+
#sidebar ul {
|
164
|
+
margin-left: 0;
|
165
|
+
padding-left: 0;
|
166
|
+
}
|
167
|
+
#sidebar ul h3 {
|
168
|
+
margin-top: 25px;
|
169
|
+
font-size: 16px;
|
170
|
+
padding-bottom: 10px;
|
171
|
+
border-bottom: 1px solid #ccc;
|
172
|
+
}
|
173
|
+
#sidebar li {
|
174
|
+
list-style-type: none;
|
175
|
+
}
|
176
|
+
#sidebar ul.links li {
|
177
|
+
margin-bottom: 5px;
|
178
|
+
}
|
179
|
+
|
180
|
+
</style>
|
181
|
+
<script type="text/javascript" src="javascripts/prototype.js"></script>
|
182
|
+
<script type="text/javascript" src="javascripts/effects.js"></script>
|
183
|
+
<script type="text/javascript">
|
184
|
+
function about() {
|
185
|
+
if (Element.empty('about-content')) {
|
186
|
+
new Ajax.Updater('about-content', 'rails_info/properties', {
|
187
|
+
method: 'get',
|
188
|
+
onFailure: function() {Element.classNames('about-content').add('failure')},
|
189
|
+
onComplete: function() {new Effect.BlindDown('about-content', {duration: 0.25})}
|
190
|
+
});
|
191
|
+
} else {
|
192
|
+
new Effect[Element.visible('about-content') ?
|
193
|
+
'BlindUp' : 'BlindDown']('about-content', {duration: 0.25});
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
window.onload = function() {
|
198
|
+
$('search-text').value = '';
|
199
|
+
$('search').onsubmit = function() {
|
200
|
+
$('search-text').value = 'site:rubyonrails.org ' + $F('search-text');
|
201
|
+
}
|
202
|
+
}
|
203
|
+
</script>
|
204
|
+
</head>
|
205
|
+
<body>
|
206
|
+
<div id="page">
|
207
|
+
<div id="sidebar">
|
208
|
+
<ul id="sidebar-items">
|
209
|
+
<li>
|
210
|
+
<form id="search" action="http://www.google.com/search" method="get">
|
211
|
+
<input type="hidden" name="hl" value="en" />
|
212
|
+
<input type="text" id="search-text" name="q" value="site:rubyonrails.org " />
|
213
|
+
<input type="submit" value="Search" /> the Rails site
|
214
|
+
</form>
|
215
|
+
</li>
|
216
|
+
|
217
|
+
<li>
|
218
|
+
<h3>Join the community</h3>
|
219
|
+
<ul class="links">
|
220
|
+
<li><a href="http://www.rubyonrails.org/">Ruby on Rails</a></li>
|
221
|
+
<li><a href="http://weblog.rubyonrails.org/">Official weblog</a></li>
|
222
|
+
<li><a href="http://lists.rubyonrails.org/">Mailing lists</a></li>
|
223
|
+
<li><a href="http://wiki.rubyonrails.org/rails/pages/IRC">IRC channel</a></li>
|
224
|
+
<li><a href="http://wiki.rubyonrails.org/">Wiki</a></li>
|
225
|
+
<li><a href="http://dev.rubyonrails.org/">Bug tracker</a></li>
|
226
|
+
</ul>
|
227
|
+
</li>
|
228
|
+
|
229
|
+
<li>
|
230
|
+
<h3>Browse the documentation</h3>
|
231
|
+
<ul class="links">
|
232
|
+
<li><a href="http://api.rubyonrails.org/">Rails API</a></li>
|
233
|
+
<li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li>
|
234
|
+
<li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li>
|
235
|
+
</ul>
|
236
|
+
</li>
|
237
|
+
</ul>
|
238
|
+
</div>
|
31
239
|
|
32
|
-
<
|
240
|
+
<div id="content">
|
241
|
+
<div id="header">
|
242
|
+
<h1>Welcome aboard</h2>
|
243
|
+
<h2>You’re riding the Rails!</h2>
|
244
|
+
</div>
|
33
245
|
|
34
|
-
<
|
35
|
-
|
36
|
-
<
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
<p>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
</
|
65
|
-
|
66
|
-
<p>
|
67
|
-
Trying to setup a default page for Rails using Routes? You'll have to delete this file (public/index.html) to get under way. Then define a new route in <tt>config/routes.rb</tt> of the form:
|
68
|
-
<pre> map.connect '', :controller => 'wiki/page', :action => 'show', :title => 'Welcome'</pre>
|
69
|
-
</p>
|
70
|
-
|
71
|
-
<p>
|
72
|
-
Having problems getting up and running? First try debugging it yourself by looking at the log files. <br/>
|
73
|
-
Then try the friendly Rails community <a href="http://www.rubyonrails.org">on the web</a> or <a href="http://www.rubyonrails.org/show/IRC">on IRC</a>
|
74
|
-
(<a href="irc://irc.freenode.net/#rubyonrails">FreeNode#rubyonrails</a>).
|
75
|
-
</p>
|
76
|
-
|
77
|
-
</body>
|
78
|
-
</html>
|
246
|
+
<div id="about">
|
247
|
+
<h3><a href="rails_info/properties" onclick="about(); return false">About your application’s environment</a></h3>
|
248
|
+
<div id="about-content" style="display: none"></div>
|
249
|
+
</div>
|
250
|
+
|
251
|
+
<div id="getting-started">
|
252
|
+
<h1>Getting started</h1>
|
253
|
+
<h2>Here’s how to get rolling:</h2>
|
254
|
+
|
255
|
+
<ol>
|
256
|
+
<li>
|
257
|
+
<h2>Create your databases and edit <tt>config/database.yml</tt></h2>
|
258
|
+
<p>Rails needs to know your login and password.</p>
|
259
|
+
</li>
|
260
|
+
|
261
|
+
<li>
|
262
|
+
<h2>Use <tt>script/generate</tt> to create your models and controllers</h2>
|
263
|
+
<p>To see all available options, run it without parameters.</p>
|
264
|
+
</li>
|
265
|
+
|
266
|
+
<li>
|
267
|
+
<h2>Set up a default route and remove or rename this file</h2>
|
268
|
+
<p>Routes are setup in config/routes.rb.</p>
|
269
|
+
</li>
|
270
|
+
</ol>
|
271
|
+
</div>
|
272
|
+
</div>
|
273
|
+
|
274
|
+
<div id="footer"> </div>
|
275
|
+
</div>
|
276
|
+
</body>
|
277
|
+
</html>
|